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. Top right align QToolBar

Top right align QToolBar

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.8k Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,

    I want to add a movable toolbar on the top right of my screen. The only tricks I saw use an empty widget with an extensive policy. The problem of that is the grab action.
    0_1515745116409_toolbar.png

    The expected result is a grab widget just on the left of my toolbar.
    0_1515745234424_toolbarresult.png

    Is there a good solution for that?

    regards,
    robin

    joeQJ 1 Reply Last reply
    0
    • ? A Former User

      Hi,

      I want to add a movable toolbar on the top right of my screen. The only tricks I saw use an empty widget with an extensive policy. The problem of that is the grab action.
      0_1515745116409_toolbar.png

      The expected result is a grab widget just on the left of my toolbar.
      0_1515745234424_toolbarresult.png

      Is there a good solution for that?

      regards,
      robin

      joeQJ Offline
      joeQJ Offline
      joeQ
      wrote on last edited by
      #2

      @Robinsondesbois Hi,friend. Welcome.

      You can use a QWidget to add some QTollButtons as QToolBar. But this way cann't let the bar move by mouse in QMainWindow.

      Becuase in different OS, Win and Mac, we should use QToolBar in Win and QMacToolBar in Mac.

      So, I used QWidget to add some QToolButton. In QWidget we can set any layout.

      Just do it!

      1 Reply Last reply
      1
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Hi!
        Thank you for the reply !

        Put a QWidget with a correct layout into the Qtoolbar don't correct my problem because the grab item still show on the left of the toolbar (not just near the first QToolButton).

        regards

        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