Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
›
Qt Documentation
V2EX
›
Qt
为什么 ListView 没有随窗口大小自适应缩放?
anzu
·
Nov 8, 2021
· 3242 views
This topic created in 1631 days ago, the information mentioned may be changed or developed.
纯萌新,系统 Linux ,窗口管理器 i3 。
截图:
https://imgur.com/a/EoN3wsX
窗口
listview
Linux
截图
1 replies
1
anzu
OP
Nov 8, 2021
我懂了。QMainWindow 有一个无法在 QT Designer 中删除的 CentralWidget ,需要在代码中设置:
ui->centralwidget->setLayout(mainLayout);
坑呐。
结贴。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3739 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms ·
UTC 04:30
·
PVG 12:30
·
LAX 21:30
·
JFK 00:30
♥ Do have faith in what you're doing.
❯