QToolbar question



  • I have been looking, but i cannot find a way to create a vertical left toolbar in a QMainWindow. It always shows up above the widget i set with setCentralWidget. setOreientation just seems to change the orientation of the separator/handle thingy.

    I am working with PySide. I was looking at setallowedAreas, or some such, but could not figure out the parameters from the documentation.

    I am very new to PySide/Qt.

    Help would be much appreciated.



  • I guess you just need.
    void "QMainWindow::addToolBar":http://doc.qt.nokia.com/4.7-snapshot/qmainwindow.html#addToolBar ( Qt::ToolBarArea area, QToolBar * toolbar )

    set area to Qt::LeftToolBarArea,that is.
    QMainWindow.addToolBar(Qt::LeftToolBarArea,yourToolbar);



  • OK, Thank a lot, I see it in the docs as well now (must have been tired ...)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.