ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

18 March 2022
2022-03-18×
18 March 2022
H
welll as you told me the code was: web.loadFinished.connect(lambda: mypage(web)) here is what mypage does: printweb.title() web.page().toHtml(processHTML) and here is what processHTML does: print(html)
F
are you sure that's not just a part of the HTML you get back which isn't actually rendered?
H
html i render finish with /div></body></html>
from PySide6.QtWidgets import QApplication, QMainWindow ModuleNotFoundError: No module named 'PySide6'
But, it was installed
K
Jose You need to select the right Python interpreter. Let me see if I can get you a screenshot or two.
Фотография
click to show
K
To add a new python interpreter, you use the "Manage" button in the run configuration of a Qt for Python project. There you can provide the path to the python executable, and give it a name. Then you can select it from the dropdown list of interpreters. Note that the Python environment you select still needs to have PySide6 installed - Qt Creator doesn't install it for you, so, from a command line, install it using pip: /path/to/your/python -m pip install PySide6
Qt Creator definitely needs some work regarding integrating python with it. It's still very C++ centric.
K
either that or we all migrate to VSCode :P
C
Don't want to spoil much but new goals are settled for the next quarter regarding python integration
C
At least we have interest from the qt creator team to keep improving stuff, so hopefully we can have good news soon :)
I will create UI QTCreator and convert PySide6 -o xxx.ui _xx_ui.py VSCode
Sorry I didn't understand. You want to create a plug-in in vscode? If that's the case there is already a Qt for Python extension.
C
And a tool to automatically convert ui files to python is already there but we are lacking of the qtcreator integration
C
There is a Qt for Python extension that opens the designer for editing ui files
J
QT Tools plugin VSCode
Calendar: March 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