You should put that splitter into a layout too. And the parent should not be a QWidget. Or you can derive your class directly from QSplitter (it'll be even better this way).
Something like:
def __init__(self, parent):
QSplitter.__init__
(Qt.
Vertical, self, parent
) setOpaqueResize(TRUE)
head = Header(self) #top child
table = Tables(self) #bottom child
show()
class DrugProfile(QSplitter):
def __init__(self, parent):
QSplitter.__init__(Qt.Vertical, self, parent)
setOpaqueResize(TRUE)
head = Header(self) #top child
table = Tables(self) #bottom child
show()
To copy to clipboard, switch view to plain text mode
Bookmarks