[PyQt] future of (py)qt desktop

Dietmar Schwertberger maillist at schwertberger.de
Wed Jan 6 19:25:20 GMT 2016


On 06.01.2016 19:26, Mathias.Born at gmx.de wrote:
>
> You can easily do that. For example, using qtquick controls:
>
> === QML ===
> Button {
>    objectName: "btnOk"
>    text: "Ok"
> }
> ======
>
> Then use QObject.findChild to find "btnOk", and connect to its "clicked" signal
> the same way you would do with a QPushButton.
>
Would it be possible to add an examples to 
http://pyqt.sourceforge.net/Docs/PyQt5/qml.html ?
E.g. a small app with:
  - a qml file which defines a list control, a text control and a button 
"Add to list"
  - a Python file which:
    - loads qml
    - connects events to buttons and the model to the list control
    - executes
Are all methods available? E.g. StackView.push/pop?

Regards,

Dietmar


More information about the PyQt mailing list