Run pyqt Designer in Docker
309
GitHub repo: see https://github.com/zaaferani/pyqt-docker for more details and how to use pyqt project in docker
For use PyQTDesigner in docker
To run the Docker container with GUI support, you’ll need to configure X11 server access:
xhost +local:docker
docker run -it --rm \
-e DISPLAY=$DISPLAY \
-e QT_QPA_PLATFORM=xcb \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $(pwd):/opt/project \
zaaferani/pyqt-designer:latest pyqt6-tools designer
docker run -it --rm \
-e DISPLAY=$DISPLAY \
-e QT_QPA_PLATFORM=xcb \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $(pwd):/opt/project \
zaaferani/pyqt-designer:latest pyuic6 -x -o main.py main.ui
Once you’re done using the GUI application, close the connection to the X server:
xhost -local:docker
Content type
Image
Digest
sha256:476b5c0cc…
Size
452.8 MB
Last updated
almost 2 years ago
docker pull zaaferani/pyqt-designer