Saturday, September 6, 2008

Adding Scroll Bars in a Qt Widget

Read this:

self.scrollBarArea = QtGui.QScrollArea() #create object
self.scrollBarArea.setWidget(self.stackedWidget) #assign child widget to scroll area layout = QtGui.QVBoxLayout() #create Vertical Layout (QLayout won't run) layout.addWidget(self.scrollBarArea) #add the scroll area to layout
self.centralwidget.setLayout(layout) #add layout to the widget

1 comment:

website design said...

I’m still learning from you, but I’m trying to achieve my goals. I absolutely liked reading everything that is written on your website.Keep the posts coming. I loved it!
website design