Qt for Python - Making a QML Application in Python {tutorial}

Qt for Python - Making a QML Application in Python {tutorial}

Qt Group

6 лет назад

73,259 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

`{third:
`{third: "Beedell", first: "Roke"}`{.JSON5} - 13.04.2023 16:04

Would be good if this were remade using a newer version of Qt and Qt Designer.

Ответить
Franks Zander
Franks Zander - 02.11.2022 08:08

Well done! Especially at the end: "Where do people use Qt?"... good one!

Ответить
Ork Schamane
Ork Schamane - 29.06.2022 15:59

We realy need a Video of how to build a pyside / python qml app to an Android/mobile App.

Ответить
Ashwin Kumar
Ashwin Kumar - 01.08.2021 10:54

how to build and deploy this ? I tried with fbs but it's not possible because qml files are not part of the build and we are trying to load files with abspath. Can you show me a way to build and distribute app developed with pyside2 + qml

Ответить
CANDEEIRO
CANDEEIRO - 01.08.2021 00:14

How to bind the qml elements (e.g buttons) to the Python file?

Ответить
Eugeniu Znagovan
Eugeniu Znagovan - 06.07.2021 18:11

will be nice to show the content of the QML file as well :)

Ответить
Vladyslav Stadnyk
Vladyslav Stadnyk - 13.06.2021 23:53

2 days spent for nothing. How to add qml object as child of another qml object from python code (pyside2/6)?

Ответить
Gregorius Bryan - Hitechpilot
Gregorius Bryan - Hitechpilot - 28.02.2021 09:14

As I see in the qml file, it is handwritten. How can we load a ui.qml file from Design Studio into Pyside? It only executes up until the (project name) import and it, of course, says that the said module is not found (because it's the project). How can we make it work with PySide?

Ответить
kelvin smith
kelvin smith - 30.01.2021 21:23

This was hard to watch:
The API Designers should have thought of:
anchors.margin: 25

I was crying typing out those left, right, top, bottom

Ответить
user 28
user 28 - 03.08.2020 23:04

nice :)

Ответить
Jess Jss
Jess Jss - 19.07.2020 13:57

U have telegram group for support??

Ответить
Marco Grubert
Marco Grubert - 27.03.2020 07:44

I remember Qt being easy to use. Then they added QML and it's been going downhill ever since. If you want to write HTML, just write HTML & JS.

Ответить
Dave Cook
Dave Cook - 01.04.2019 02:29

Where do I get the QML file used in the tutorial? I'm guessing it's part of another tutorial.

Ответить
S S
S S - 30.03.2019 13:42

How do you build applications after this? we cannot keep running the application from python console

Ответить
Fahad Sharifi
Fahad Sharifi - 21.02.2019 03:20

2nd attack 😹

Ответить
Night Wolf
Night Wolf - 19.02.2019 17:39

weird flex but ok

Ответить
Yacine BENAFFANE
Yacine BENAFFANE - 18.02.2019 19:45

How can i add ressource file ?

Ответить
Diriku Tiada
Diriku Tiada - 29.12.2018 05:55

No intellisense.. and the code looks complex.. i prefer pyqt5 instead...

Ответить
Emmanuel Irizarry
Emmanuel Irizarry - 16.11.2018 22:01

Yeah but you cant run the software inside the editor.....😒

Ответить
Noone10011
Noone10011 - 20.10.2018 02:10

This doesn't seem to work on Windows

I follow this exactly and it errors with:
QQuickView does not support using windows as a root item.

If you wish to create your root window from QML, consider using QQmlApplicationEngine instead.

If I do this instead of the if view.status()....
print(view.status())
print(view.errors())
it prints:
PySide2.QtQuick.QQuickView.Status.Error
[<<Unknown File>: QQuickView: invalid root object. at 0x000002CEAD9D8D88>]

and it opens two windows

Ответить
Docsie
Docsie - 24.07.2018 00:03

@qt is there a mobile app example available anywhere?

Ответить
Lucio Lesti
Lucio Lesti - 06.07.2018 17:20

In the last release of Qt Creator is possible to create a GUI project in Python as in C++?
In this video i not see yet a good support for Python completion code.

Ответить
Aleksei Rusev
Aleksei Rusev - 02.07.2018 23:44

The author definetely not a Python programmer, but thanks for the tut anyway:
l = sorted(data.values())

Ответить
Anthony Jones
Anthony Jones - 14.06.2018 13:35

Yeah...not so sure if PySide2 is complete yet, as its giving me "modules not found" errors on the OpenGL and QStringListModel modules. This after I copied your tutorial word for word...

Ответить
z i z z u⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻
z i z z u⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻ - 13.06.2018 21:17

Python <3 o.o

Ответить
Pratik farkase
Pratik farkase - 13.06.2018 18:21

Does this mean that i can use develop QML applications for my raspberrypi 3 in python from now on instead of C++?

Ответить
RedJerick
RedJerick - 13.06.2018 17:21

Is it really necessary to delete the view at the end manually?

Ответить
Eddie
Eddie - 13.06.2018 17:05

Good tutorial. Would have been better if the PEP-8 naming conversations are followed for consistency.

Ответить
Everton Fonseca
Everton Fonseca - 13.06.2018 13:34

it's perfect

Ответить