Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QToolbar question
Forum Updated to NodeBB v4.3 + New Features

QToolbar question

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    farcat
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      noregister
      wrote on last edited by
      #2

      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);

      1 Reply Last reply
      0
      • F Offline
        F Offline
        farcat
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved