blanka
14th November 2010, 19:25
Hello guys.
I was wondering if anyone can help me with some syntax/expression. i am using QMainWindow
The GUI i am working on has a tool bar , now i want to change the default position of it to the left of the CenterWidget. i am having problem saying put the toolbar to the left ..
http://img833.imageshack.us/img833/2669/picsq.png
Here is the code i have at the moment
toolbar = self.addToolBar('toolbar')
toolbar.addAction(NewDoc)
toolbar.addAction(Map)
toolbar.addAction(Change)
toolbar.addAction(exit)
Here things i tried without luck.
toolbar = self.addToolBar(Qt.LeftToolBarArea)
toolbar.addAction(NewDoc)
toolbar.addAction(Map)
toolbar.addAction(Change)
toolbar.addAction(exit)
toolbar = self.addToolBar('toolabr')
toolbar.LeftToolbarArea()
toolbar.addAction(NewDoc)
toolbar.addAction(Map)
toolbar.addAction(Change)
toolbar.addAction(exit)
toolbar = self.addToolBar(Qt.BottomToolBarArea,'Toolbar')
toolbar.LeftToolbarArea()
toolbar.addAction(NewDoc)
toolbar.addAction(Map)
toolbar.addAction(Change)
toolbar.addAction(exit)
i would appreciate any help. Thank you
ps: sorry for the indent..
I was wondering if anyone can help me with some syntax/expression. i am using QMainWindow
The GUI i am working on has a tool bar , now i want to change the default position of it to the left of the CenterWidget. i am having problem saying put the toolbar to the left ..
http://img833.imageshack.us/img833/2669/picsq.png
Here is the code i have at the moment
toolbar = self.addToolBar('toolbar')
toolbar.addAction(NewDoc)
toolbar.addAction(Map)
toolbar.addAction(Change)
toolbar.addAction(exit)
Here things i tried without luck.
toolbar = self.addToolBar(Qt.LeftToolBarArea)
toolbar.addAction(NewDoc)
toolbar.addAction(Map)
toolbar.addAction(Change)
toolbar.addAction(exit)
toolbar = self.addToolBar('toolabr')
toolbar.LeftToolbarArea()
toolbar.addAction(NewDoc)
toolbar.addAction(Map)
toolbar.addAction(Change)
toolbar.addAction(exit)
toolbar = self.addToolBar(Qt.BottomToolBarArea,'Toolbar')
toolbar.LeftToolbarArea()
toolbar.addAction(NewDoc)
toolbar.addAction(Map)
toolbar.addAction(Change)
toolbar.addAction(exit)
i would appreciate any help. Thank you
ps: sorry for the indent..