OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> Qwidgetstack, how to ? it doesnt show any widgets
post Mar 20 2006, 10:24 AM
Post #1

Group: Members
Posts: 668
Joined: 3-December 03
From: US
Member No.: 1,034

I am using the QWidgetStack to create a sideBar element in my program which can change on context - a context sensitive changing sideBar menu element.

So I am adding widgets into the WidgetStack and them calling the widgetStack control in the main screen. On the desktop - this method works fine and I can raiseWidgets as needed to the front.

But on the Zaurus, the whole widgetStack control doesnt show up at all.
There are no errors when using QWidgetStack on Qt/E, but nothing shows at all.

What is heppening here ?Is the QWidgetStack implementation the same in QT/E as in QT.

Code sample as below
class controlWidgets(QWidgetStack) :
def __init__(self,parent = None,name = None):

if name == None:


self.widgetMain = controls(self) # control is the main widget class
self.widgetLocal = controlLocal(self) #controlLocal is a local widget

in the main section I call controlWidgets as below
self.sideBar = controlWidgets(self)

I have read on other threads that the QWidgetStack on QT/E has a bug - is this the reason for the non-visibility of the WidgetStack control on the Zaurus ?
Go to the top of the page
+Quote Post
Start new topic
post Mar 21 2006, 08:56 AM
Post #2

Group: Members
Posts: 668
Joined: 3-December 03
From: US
Member No.: 1,034

Sorry guys... found the solution - was a bit foolhardy in not trying it earlier.

I seems on QT/E on the Zaurus you need to give an explicit raiseWidget call after defining and populating the WidgetStack to show the first widget.
Otherwise nothing shows up at all - just a blank stack.

On the desktop (regular QT) however an explicit raiseWidget call is not required. Just calling the widgetStack control with the widgets added to it will show the index 0 widget by default.

So that was what stumped me at first.
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th May 2018 - 02:11 AM