ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

19 October 2022
2022-10-19×
19 October 2022
Ссылка
click to show
Hello. What's the best way to handle file URI coming from a QML FileDialog in PySide6? On Linux It returns file:///home/blabla/etc/file.json how would I go around making it an actual path in Python, preferably working on all platforms? I guess basically equivalent of https://stackoverflow.com/a/50811629/1018051 but in Python?
I
Nvm, I see it now. :)
I
You mean like so? Based on the stackoverflow link QDir.toNativeSeparators(QUrl(val).path()) is what i needed where val is selectedFile from FileDialog's onAccepted (not sure if it's crossplatform, but in the end it doesn't really matter to me, mostly wanted to get rid of the file:/// notation somewhat the right way)
Calendar: October 2022
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog