![]() |
2010-07-12
, 19:46
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#2
|
![]() |
2010-07-12
, 20:39
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#3
|
the portion of ui.py of interest looks like this:
Form.setObjectName("Form")
Form.resize(540, 396)
Form.setSizeIncrement(QtCore.QSize(0, 0))
Form.setAutoFillBackground(True)
self.scrollArea = QtGui.QScrollArea(Form)
self.scrollArea.setGeometry(QtCore.QRect(170, 80, 120, 80))
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
self.scrollAreaWidgetContents.setGeometry(QtCore.Q Rect(0, 0, 118, 78))
self.scrollAreaWidgetContents.setObjectName("scrol lAreaWidgetContents")
self.label = QtGui.QLabel(self.scrollAreaWidgetContents)
self.label.setGeometry(QtCore.QRect(20, 10, 61, 51))
self.label.setObjectName("label")
self.scrollArea.setWidget(self.scrollAreaWidgetCon tents)
I'm using python + qt + maemo 5 sdk to develop a very simple test application.
I'm using Qt designer, to basically create small widget which consists of a scrollarea + label and a pushbutton.
So after I finished creating this widget in designer I ran:
pyside-uic main.ui -o ui.py
I then import this form main.py, and it displays my spiffy widget.
The problem is no matter what I do, I can't make the label scroll.
the portion of ui.py of interest looks like this:
Form.setObjectName("Form")
Form.resize(540, 396)
Form.setSizeIncrement(QtCore.QSize(0, 0))
Form.setAutoFillBackground(True)
self.scrollArea = QtGui.QScrollArea(Form)
self.scrollArea.setGeometry(QtCore.QRect(170, 80, 120, 80))
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
self.scrollAreaWidgetContents.setGeometry(QtCore.Q Rect(0, 0, 118, 78))
self.scrollAreaWidgetContents.setObjectName("scrol lAreaWidgetContents")
self.label = QtGui.QLabel(self.scrollAreaWidgetContents)
self.label.setGeometry(QtCore.QRect(20, 10, 61, 51))
self.label.setObjectName("label")
self.scrollArea.setWidget(self.scrollAreaWidgetCon tents)
Any help would be appreciated.