Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1579

Python • first Python Qt6 setup for GUI app

$
0
0
after try C++ & Qt6 see viewtopic.php?t=396208#p2363702

want see how that works with Python,
it is actually easy.

on a new setup
* RPI4 ( headless VNC )
* RPIOS Desktop 64bit

Code:

sudo apt install qtcreatorsudo reboot
[menu] [Programming] [QT Creator]
[Create Project] [Application (Qt for Python)] [Window UI] [Choose]
Location: 'qtpyui' /home/pi/Projects/PY [default yes] [Next]
[Next][Next][Next][Finish]

there is a warning that
PySide6 install is missing ? install inside venv
select [INSTALL] OK
[ctrl][ b] ( for BUILD )
[ctrl][ r] ( for RUN )
+ + it makes its own VENV
+ + build creates window ui_form.py from form.ui
Image

for add content to the GUI window double click on file form.ui to start the Qt Designer
Image

Statistics: Posted by PiPlay — Sat Feb 21, 2026 3:43 am



Viewing all articles
Browse latest Browse all 1579

Trending Articles