• 4432阅读
  • 1回复

windows与linux 关于图形界面 [复制链接]

上一主题 下一主题
离线nhf1982
 

只看楼主 正序阅读 楼主  发表于: 2009-11-25
    刚开始学习QT, 使用了第一个功能(如下),但是看说明好像写的是这个在windows下好用,在linux X11下不好用,是这样吗?      我该怎么理解?  我做的程序想在windows和linux下都好用该注意些什么?
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.

An alternative would be to bypass the window manager entirely and create a window with the Qt::X11BypassWindowManagerHint flag. This has other severe problems though, like totally broken keyboard focus and very strange effects on desktop changes or when the user raises other windows.

X11 window managers that follow modern post-ICCCM specifications support full-screen mode properly.
离线dbzhang800

只看该作者 1楼 发表于: 2009-11-25
如果英文不容易看,楼主可以先把它翻译成中文。 这段话已经说的蛮清楚了
快速回复
限100 字节
 
上一个 下一个