Dear Forum.
Im considering to learn PyQT or PySide6 for develop GUI on Raspberry. Searching on google, was not clear for me this points:
if GUI apps, developed for Window (or linux if this could be better for some reason ), can also run for Raspberry PI4 (also with some modify)
2)Could be possible cross compile ; this means, install QT tool (designer or cerator…again i dont know) on window (or linux),and deploy on Raspberry pi4.
3)Possible avoid QML (just for now…I need to learn).
If you can write os-agnostic python script (no specific windows stuff in python) then you can use exacly the same file on all platform Windows/Linux (RPi4)
There is no need to compile anything you simply create virtual env (both on Windows/Linux) use pip to install PySide6 and all other libraries
You don’t need use any of QML to crate PySide6 GUI app.
About question N2:
I read many post on google ,sayng that pip install on rasp dont work. Some post end with the fact that you need Ubuntu on rasp, and not rasbian, …another that you need 64 bit cpu and not 32…
This apart, I can install pyside6 on RPI in some way,on rasbian ?
About question N1:
Let me know if i understood ok. I install Pyside on my PC
window, design some button ,use only python for dothe rest of the job, and, when i go on rasp or linux, i just need to install Pyside and all work ?
Funzion like modify a file, graphic design , will not change
(at the end, i just need file and x-y plot)
Excuse again for insist on same questions
Thanks again
Roberto
But in the end only try can verify it… I can’t not
Maybe try switch to testing branch on raspbian and give a try.
Q1
Basicly yes, PySide6 code (GUI, widgets etc) alone is 100% OS agnostic, just be sure rest of python code can be run on both OS and you are good to go.
Dear Michal
I just want update you about my test on develop app for Raspberry. I create one with PySide6 using IDE PyCharm or VScode.
App was working on Win, Ubuntu and Rasp CM4 (Rasb 64 bit).
On linux i need to install this plugin: