windows与linux 关于图形界面

weixin_38072110 2019-09-19 01:02:29
刚开始学习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.
...全文
33 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38082682 2019-09-19
  • 打赏
  • 举报
回复
如果英文不容易看,楼主可以先把它翻译成中文。 这段话已经说的蛮清楚了

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧