27 July 2021
DastanHey Guys, How to create popup window for create some information ? I want to create registration popup window like any website
Maybe have a look at the standarddialog examples
.../Lib/site-packages/PySide6/examples/widgets/dialogs/standarddialogs/standarddialogs.py
Mr.sobhaniФотография
Depends on what Kind of table this is. If it's a QTableWidget then you can get the items in the cells via item = self.item(i, j)
Where self is your table instance and i and j are the rows and columns. You might loop over them all or the specific column and its rows to get all the states ...
And then item.checkState() is QtCore.Qt.Checked...
I remember someone was asking about how to properly replace context properties some time ago, so I just wanted to share that we finally updated a bit the qml code in the pyside repo https://codereview.qt-project.org/c/pyside/pyside-setup/+/357115 (including examples, and the few tutorials)
If someone has a nice idea to add a new tutorial, please do 🙏 I would gladly review the patch so it's merged before 6.2 is out.
we only have a couple, so more are welcomed (even one of those needs to be upgraded :P)
If you want to grab one of the examples we have and transform it into a tutorial that would also work
running the widgets.py returns : js: Access to XMLHttpRequest at 'http://mmtf.rcsb.org/v1.0/full/1crn' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
js: Uncaught (in promise) error loading file: 'network error'
id 835851715by the way, I hate html / css ! This is insane too
we have to live with it ... i wish we could write websites in QML
Ссылка
click to show
click to show
hmmm interesting ... http://www.alex-spataru.com/blog/using-qt-widgets-in-your-qmlqtquick-applications
id 942897553ok yeah they all moved to libera. sorry for offtopic
Ссылка
click to show
click to show
https://gist.github.com/joepie91/df80d8d36cd9d1bde46ba018af497409 has some context
id 942897553is just run a small flask service in your app
There's also https://doc.qt.io/qt-5/qwebengineurlschemehandler.html which is probably much simpler and still a cleaner than setHtml is
FreyaThere's also https://doc.qt.io/qt-5/qwebengineurlschemehandler.html which is probably much simpler and still a cleaner than setHtml is
Definitely. The url scheme handler API is quite easy to use.