Qt ui.qml application in Linux
-
Hi everyone. I can be considered as noob in qt, but after a week-long battle with ever imagined cross-compilations, buildings and configurations I have a one simple question, and I rely on community very much for helping found an answer - why I can create flexible perfect design of gui application in Design studio based on python and using ui.qml files, and I cant just doing as same in Linux and even dramatically on Raspberry?
May be I digged in wrong direction? Or what? Pls help, cos' after a week of endless and sleepless buildings, reinstallations and trying of more endless number of combinations of application structure organization it's seems more like madness than design.
If someone know really working methods of painless creating applications based on python where I can use multiple screens (states) and further IT CAN WORK ON LINUX/RASPBERRY - please, say it loud, it would be a big deal.
Thanks in advance -
Hi and welcome to devnet,
What exactly is your issue on the RaspberryPi ?
How do you transfert your application from your desktop to your RPi ?
-
Hi and welcome to devnet,
What exactly is your issue on the RaspberryPi ?
How do you transfert your application from your desktop to your RPi ?
@SGaist honestly - for the first time i've just copied files to raspberry with installed qt (by apt-get qt5-default, qtcreator). It was .py file with backend, .qml with main construction, which loads to engine in python code, and .ui.qml with different screen construction, which implied to switch by states. also on rpi was installed pyside2.
but what confused me most - application errors were concerned about qtquick imports - it just couldn't find it.
yeah, somewhere in my mind i guess that i maybe doing something wrong, but i found zero info about what i need and mean exactly - is it even possible to use ui.qml-based applications on linux/rpi particularly
because when i opened it in gui mode - i found that it uses (as example in new projects) older versions of qtquick, but when i set this versions - it didn't help. also i was confused that it doesn't have python projects templates at all, what made me like - "hm, does it even support python projects?"
for now - i'm in process of building qt from source on rpi, but i'm not sure will it help or not.
same story when i tried to install qt on my desktop ubuntu.
i read about cross-compilation but didn't try it because all tutorials says that in need simultaneous build of qt on host and rpi with rsync of files, but in the same time they says that these builds is platform-dependent, so i didn't do it because i just wanted to try simple project on my rpi(3b) but what will be used in project what i need to do is rpi3b+/rpi4, what leads, as i understand, to rebuild of host qt. but for now i'm already just exhausted by endless rebuilds which takes over a day each time and all this time i can't make design and code because i don't understand will it work somehow someday or not, in this form (as mentioned in beginning of message), or i must turn the table and just hardcode gui in pyhon code by widgets? but even if hardcode or use just separate qml's - i can't find anywhere - how to switch between, for example, few qml files in python, instead of switching states like in ui.qml?
or what?.. i'm really confused for now -
Are you using PySide2/6 or PyQt5/6 ?
On did you install them ?
-
Are they all the same versions ?
Did you install them the same way on all your devices ?What exact issue are you having ?
Since you are using QtQuick, you should start really simple with a basic app and make it work on both sides.