调整主窗口和裁切区域窗口

This commit is contained in:
yangjiaxuan 2022-06-10 17:32:31 +08:00
parent 6dfa6a94cf
commit 7cb7ee22e0
2 changed files with 29 additions and 9 deletions

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>461</width> <width>439</width>
<height>281</height> <height>700</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -19,7 +19,7 @@
<property name="windowTitle"> <property name="windowTitle">
<string>自定义扫描区域</string> <string>自定义扫描区域</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0,1,0,0,0"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_4">
<item> <item>
@ -142,6 +142,21 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_4">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>421</width>
<height>454</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="cutDialog" name="widget" native="true"> <widget class="cutDialog" name="widget" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
@ -152,6 +167,10 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</widget>
</widget>
</item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>

View File

@ -77,6 +77,7 @@ MainWindow::MainWindow(QWidget *parent)
#endif #endif
this->setAutoFillBackground(true); this->setAutoFillBackground(true);
this->setPalette(QPalette(QColor(230, 230, 230))); this->setPalette(QPalette(QColor(230, 230, 230)));
resize(950,720);
m_config.load(); m_config.load();