File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 4646 QGridLayout ,
4747 QPushButton ,
4848 QDoubleSpinBox ,
49- QMessageBox )
49+ QMessageBox ,
50+ QWidget ,
51+ QScrollArea )
5052import struct
5153import glob
5254
@@ -92,8 +94,11 @@ def __init__(self, parent=None):
9294 self .mask_label = QLabel ()
9395 self .new_mask_label = QLabel ()
9496
95- grid = QGridLayout ()
97+ self .scrollArea = QScrollArea ()
98+ self .widget = QWidget ()
99+
96100 self .test_name_label = QLabel ()
101+ grid = QGridLayout ()
97102 grid .addWidget (self .test_name_label , 0 , 0 )
98103 grid .addWidget (QLabel ('Control' ), 1 , 0 )
99104 grid .addWidget (QLabel ('Rendered' ), 1 , 1 )
@@ -106,8 +111,10 @@ def __init__(self, parent=None):
106111 grid .addWidget (self .mask_label , 4 , 0 )
107112 grid .addWidget (self .new_mask_label , 4 , 1 )
108113
114+ self .widget .setLayout (grid )
115+ self .scrollArea .setWidget (self .widget )
109116 v_layout = QVBoxLayout ()
110- v_layout .addLayout ( grid , 1 )
117+ v_layout .addWidget ( self . scrollArea , 1 )
111118
112119 next_image_button = QPushButton ()
113120 next_image_button .setText ('Skip' )
You can’t perform that action at this time.
0 commit comments