ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

13 January 2021
2021-01-13×
13 January 2021
Ë
As I have not much experience with this and the information seems kinda voodoo I was looking up the ALL PySide2 examples for instances of @QtCore.Slot decorators. First ones I found were all QtQuick and QML based and indeed: There is the type specified and these ones actually break when the decorator is not correct 👍 (the declarative/extending/chapter3-bindings/bindings.py one has a Slot as well but actually the decorator is not needed there. The whole function is not used/needed in this example) Now any other occurrences: All these work without the @QtCore.Slot decorator: * external/matplotlib/widget_3dplot.py * external/opencv/webcam_pattern_detection.py - (super funny example! :D) * external/scikit/staining_colors_separation.py * installer_test/hello.py * opengl/grabber.py - mentions Slots in function args but does not use a decorator, works * opengl/hellogl.py - uses ancient self.connect(.. SLOT("setValue(int)"))-style but works with modern slider.valueChanged.connect(setterSlot) right away * sql/books/bookwindow.py * tutorial/t7.py - t14.py * widgets/codeeditor/codeeditor.py * widgets/state-machine/trafficlight.py * widgets/systray/main.py * widgets/threads/thread_signals.py This is the only other example where it needs to be set: * webchannel/standalone - core.py: _emit_send_text does NOT need the Slot decorator but receiveText indeed DOES! - display.py - works without - websocketclientwrapper.py - works without So I'd conclude: whenever a method is directly connected within the python code there is no need for the Slot decorator. Whenever a connection is implied and handled outside of python a Slot decorator is needed.
ëRiCAs I have not much experience with this and the information seems kinda voodoo I was looking up the ALL PySide2 examples for instances of @QtCore.Slot decorators. First ones I found were all QtQuick and QML based and indeed: There is the type specified and these ones actually break when the decorat
sounds, right, but also when you specify the Slot arguments, you cannot do it without the decorator itself. So, if you see, it's preferred to always use it, instead of wonder the specific type of connection in or out of Python.
Y
🙏 Can any one please help me with the name of a site that host CSS code for free (CDN network) I tried codepen not working
R
Qml question: what's the difference between Grid and GridLayout?
R
(I mean, the squares move 1px.)
R
It is just a playground. I never did anything fancy there, but I like to test or use it to visualize stuff.
R
Qt outputs to Mobiles, so I believe you can use C++ and Qml to make a mobile app.
Calendar: January 2021
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