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): QWidgetStack.__init__(self,parent,name) if name == None: self.setName('') self.setSizePolicy(QSizePolicy(4,7,self.sizePolicy().hasHeightForWidth())) self.setMinimumSize(QSize(90,120)) self.setMaximumSize(QSize(160,420)) self.widgetMain = controls(self) # control is the main widget class self.widgetLocal = controlLocal(self) #controlLocal is a local widget self.addWidget(self.widgetMain,1) self.addWidget(self.widgetLocal,2) in the main section I call controlWidgets as below -------------------------------- self.sideBar = controlWidgets(self) self.sideBar.setSizePolicy(QSizePolicy(0,0,self.sideBar.sizePolicy().hasHeightFo Width())) self.layoutSideBar.addWidget(self.sideBar) self.sideBar.show() 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 ? |
|
|
|
nilch Sorry guys... found the solution - was a bit foolh... Mar 21 2006, 08:56 AM
netog Hi. Just as curiosity... have you tried to use pyt... Apr 2 2006, 03:52 PM
nilch Hi netog,
I haven't yet tried Python with MyS... Apr 13 2006, 08:42 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 10:32 PM |