from PySide.QtGui import *
from PySide.QtCore import *
# Constructor
def __init__(self):
self.setMaximumHeight(250)
#t = testWidget()
layout.addWidget(c1, 0, 0)
layout.addWidget(t1, 0, 1)
layout.addWidget(c2, 1, 0)
layout.addWidget(t2, 1, 1)
layout.addWidget(c3, 2, 0)
layout.addWidget(t3, 2, 1)
layout.addWidget(c4, 3, 0)
layout.addWidget(t4, 3, 1)
layout.addWidget(c5, 4, 0)
layout.addWidget(t5, 4, 1)
layout.addWidget(c6, 5, 0)
layout.addWidget(t6, 5, 1)
layout.addWidget(c7, 6, 0)
layout.addWidget(t7, 6, 1)
scroll.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)
scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
scroll.setWidgetResizable(True)
scroll.setWidget(w)
self.addTab(w, "Model and IOS")
from PySide.QtGui import *
from PySide.QtCore import *
class PolicyTabs(QTabWidget):
# Constructor
def __init__(self):
QTabWidget.__init__(self)
self.setMaximumHeight(250)
#t = testWidget()
w = QWidget()
layout = QGridLayout(w)
c1 = QCheckBox("Label")
t1 = QLineEdit()
c2 = QCheckBox("Label")
t2 = QLineEdit()
c3 = QCheckBox("Label")
t3 = QLineEdit()
c4 = QCheckBox("Label")
t4 = QLineEdit()
c5 = QCheckBox("Label")
t5 = QLineEdit()
c6 = QCheckBox("Label")
t6 = QLineEdit()
c7 = QCheckBox("Label")
t7 = QLineEdit()
layout.addWidget(c1, 0, 0)
layout.addWidget(t1, 0, 1)
layout.addWidget(c2, 1, 0)
layout.addWidget(t2, 1, 1)
layout.addWidget(c3, 2, 0)
layout.addWidget(t3, 2, 1)
layout.addWidget(c4, 3, 0)
layout.addWidget(t4, 3, 1)
layout.addWidget(c5, 4, 0)
layout.addWidget(t5, 4, 1)
layout.addWidget(c6, 5, 0)
layout.addWidget(t6, 5, 1)
layout.addWidget(c7, 6, 0)
layout.addWidget(t7, 6, 1)
scroll = QScrollArea()
scroll.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)
scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
scroll.setWidgetResizable(True)
scroll.setWidget(w)
self.addTab(w, "Model and IOS")
To copy to clipboard, switch view to plain text mode
Bookmarks