码迷,mamicode.com
首页 > 其他好文 > 详细

Qt---去掉标题栏后,最大化应用程序窗口时,窗口遮住了任务栏的问题

时间:2018-08-31 00:35:40      阅读:758      评论:0      收藏:0      [点我收藏+]

标签:使用   available   des   zed   geometry   问题   this   desktop   窗口   

不应该使用:

this->showFullScreen(); 
this->showMaximized();
而应该使用:
this->setGeometry(QApplication::desktop()->availableGeometry());

Qt---去掉标题栏后,最大化应用程序窗口时,窗口遮住了任务栏的问题

标签:使用   available   des   zed   geometry   问题   this   desktop   窗口   

原文地址:https://www.cnblogs.com/granx/p/9563361.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!