[英]Widgets in window title Qt
Is in Qt something like GTK.headerbar or any other possibility to add wiget (button for example) in window title? Qt中是否有GTK.headerbar之类的东西,或在窗口标题中添加了wiget(例如按钮)的任何其他可能性?
Thanks in advance. 提前致谢。
Short answer is 'no', Qt doesn't implement any kind of window decorations (except QWS which is a different story). 简短的回答是“不”,Qt不实现任何类型的窗口装饰(QWS除外)。
In Linux the title bars (window decorations) are carried by Window Managers, like Metacity or Compiz. 在Linux中,标题栏(窗口装饰)由窗口管理器(如Metacity或Compiz)承载。 Windows and OSX use their own window decorations.
Windows和OSX使用它们自己的窗口装饰。 Qt has almost no control over what happens on the window title bars.
Qt几乎无法控制窗口标题栏上发生的事情。
Gnome3/GTK3 (and not Gnome2) allows you to use widgets in the title bar but it's not the case for many other Desktop Environments / Window Managers. Gnome3 / GTK3(而不是Gnome2)允许您使用标题栏中的小部件,但其他许多桌面环境/窗口管理器则不是这样。 Your options are:
您的选择是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.