Issue With Scrollarea In Pyqt?
This is the file I generated using qt-designer. from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: _fromUtf8 = lambda s: s cl
Solution 1:
I remember this similar question :-) How to associate a horizontal scrollbar to multiple groupbox.?
The reason you are still not getting proper scrollbars is because your widgets inside the scrollarea don't have a minimum height and are being allowed to shrink far enough down that they would never force the scrollarea to display its scrollbars.
In code, you can fix this by:
self.dockWidgetContents.setMinimumHeight(100)
Althought, you shouldn't be making any direct edits to this file being generated from Qt Designer. What you should do is go into QtDesigner, select the widgets, and at the top of their property list, set a minimum height for them.
Post a Comment for "Issue With Scrollarea In Pyqt?"