• 6829阅读
  • 3回复

QT GUI中如何实现启动全屏幕 同时没有最上面一栏(包括那三个按钮) [复制链接]

上一主题 下一主题
离线nhf1982
 

只看楼主 倒序阅读 楼主  发表于: 2009-11-25
如题~

  最大化显示,同时没有最上面那一条和 最大化最小化关闭那三个按钮
离线dbzhang800

只看该作者 1楼 发表于: 2009-11-25
建议平时多看看 Qt  自带的 manual

void QWidget::showFullScreen ()   [slot]
Shows the widget in full-screen mode.

Calling this function only affects windows.

To return from full-screen mode, call showNormal().

Full-screen mode works fine under Windows, but has certain problems under X. These problems are due to limitations of the ICCCM protocol that specifies the communication between X11 clients and the window manager. ICCCM simply does not understand the concept of non-decorated full-screen windows. Therefore, the best we can do is to request a borderless window and place and resize it to fill the entire screen. Depending on the window manager, this may or may not work. The borderless window is requested using MOTIF hints, which are at least partially supported by virtually all modern window managers.
离线nhf1982

只看该作者 2楼 发表于: 2009-11-25
哈哈,谢谢,豁然开朗:)  

再请问一下,如何屏蔽掉类似ALT+F4这样的系统功能键呢?
离线hiti_tony
只看该作者 3楼 发表于: 2009-11-25
随便说两句,我个人觉得碰到问题最好自己先研究一下,不要一看是自己不会的冬冬就发贴出来问答案是什么,这样不利于自己的提高。

至于屏蔽ALT+F4这种功能,我建议你去study一下热键知识。
快速回复
限100 字节
 
上一个 下一个