Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
“已解决”在qt中,如何让一个QWidget占据两个屏幕的全屏?
Experiences and Insight
760
views ·
2
replies ·
To
floor
Go
zhaolu2000
deepin
2020-10-13 05:14
Author
本帖最后由 zhaolu2000 于 2020-10-16 17:30 编辑
我在qt的开发中遇到一个问题。
#include
#include
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWidget w;
w.resize(1920 * 2, 1080);
w.show();
return a.exec();
}
在win10下,以上这段代码可以将一个窗口占据两个屏幕的全屏,
但是在deepin深度V20下,只能扩展到一个屏幕。有什么好办法能够让一个窗口扩展到两个屏幕吗?
Reply
Like 0
Favorite
View the author
All Replies
tangjc
deepin
2020-10-13 17:03
#1
setFixedSize();试试
Reply
Like 0
View the author
zhaolu2000
deepin
2020-10-13 18:32
#2
https://bbs.deepin.org/post/203733
setFixedSize();试试
问题解决了,谢谢!
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
我在qt的开发中遇到一个问题。
#include
#include
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWidget w;
w.resize(1920 * 2, 1080);
w.show();
return a.exec();
}
在win10下,以上这段代码可以将一个窗口占据两个屏幕的全屏,
但是在deepin深度V20下,只能扩展到一个屏幕。有什么好办法能够让一个窗口扩展到两个屏幕吗?