Issue
hi,I want to set the initial width can use QListWidget,and use splitter to adjust the size.
but now,when I use the splitter, is like this.
Solution
There's no way to set initial sizes of QSplitter
children using Qt Designer. Once you've converted from .ui to .py, you can set the size of each pane using setSizes(list_of_sizes)
. i.e. for a two-pane window:
splitter = QtWidgets.QSplitter()
splitter.setSizes((50,100))
Answered By - Crispin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.