mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-22 20:44:59 +00:00
update:视频窗口固定大小
This commit is contained in:
parent
7d06d4582a
commit
5f1c120a89
1 changed files with 3 additions and 2 deletions
|
@ -243,8 +243,9 @@ void VideoForm::updateShowSize(const QSize &newSize)
|
|||
//int titleBarHeight = style()->pixelMetric(QStyle::PM_TitleBarHeight);
|
||||
//showSize.setHeight(showSize.height() - titleBarHeight);
|
||||
|
||||
if (showSize != size()) {
|
||||
resize(showSize);
|
||||
if (showSize != size()) {
|
||||
setFixedSize(showSize);
|
||||
//resize(showSize);
|
||||
updateStyleSheet(vertical);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue