[PyQt] future of (py)qt desktop
Phil Thompson
phil at riverbankcomputing.com
Wed Jan 6 22:46:27 GMT 2016
On 6 Jan 2016, at 7:25 pm, Dietmar Schwertberger <maillist at schwertberger.de> wrote:
>
> 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?
I'll add it if you write it...
Phil
More information about the PyQt
mailing list