Qt app UI elements randomly rendered as blank/black in Docker

  • I prepared Dockerfile to build Docker image of my Qt application. To run the application I use X - I enable access to X server (xhost +local:root) , then I use the following command to run it:

    docker run -it --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" \
        --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" mindforger:latest mindforger

    The problem is that some Qt UI elements (menu items, dialogs, ...) are rendered blank in black (randomly) - check the screenshot below:


    I'm on Ubuntu 16.04.5 with Docker 18.06 and Qt 5.01.

  • Moderators

    But... why? Why docker?

    Anyway. Do other applications show normally? Like some standard Gnome/KDE apps.

    I strongly recommend using something newer than Qt 5.0.1. It was an extremely buggy release. And it's super old.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.