且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Docker容器中的GUI Qt应用程序

更新时间:2022-06-22 02:48:04

Qt5和Qt4具有不同的渲染子系统

Qt5 and Qt4 has a different rendering subsystems

Qt4渲染器只需要一个提示:

Qt4 renderer just needs a hint:

export QT_GRAPHICSSYSTEM="native"

必须工作

QT_GRAPHICSSYSTEM="native" docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix someQt4AppContainer