[英]Does Qt require a preinstalled window manager on Linux?
I'm working on a GUI application with Qt on Linux. 我正在Linux上使用Qt开发GUI应用程序。 The operating system only provides the X Server and the prerequisites to run a Qt application.
操作系统仅提供X Server和运行Qt应用程序的先决条件。 There is no desktop environment like GNOME, KDE, etc. installed yet.
尚未安装GNOME,KDE等桌面环境。 There's no window manager neither.
也没有窗口管理器。
So my question is: does Qt require a preinstalled window manager (like KWin, Compiz, Metacity, etc.) or is it possible to write a Qt application that communicates with the X Server directly? 所以我的问题是:Qt是否需要预先安装的窗口管理器(例如KWin,Compiz,Metacity等),还是可以编写直接与X Server通信的Qt应用程序? I'm aware of the fact that the latter one possibly drives me crazy due to the effort I'd have.
我知道以下事实:由于我的努力,后者可能使我发疯。 However, due to limitation of resources it could be an option.
但是,由于资源有限,它可能是一种选择。
Thanks in advance for your help! 在此先感谢您的帮助!
No, Qt doesn't require a window manager when running under X11. 不,在X11下运行时,Qt不需要窗口管理器。 You will have to manage your own windows, though!
但是,您将必须管理自己的窗口! That means that you'll have to manage the Z order of windows, dragging windows on the screen, minimization/maximization if you need such, etc.
这意味着您将必须管理窗口的Z顺序,在屏幕上拖动窗口,在需要时最小化/最大化等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.