Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Non-dockable floating toolbar

    General and Desktop
    2
    3
    144
    Loading More Posts
    • 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.
    • Perdrix
      Perdrix last edited by

      I want to be able to create a small toolbar to the lower right on a widget. I don't wish the user to be able to move it, or to dock it. Ideally it should be alpha 50% when the mouse isn't over it, but that's a detail.

      Here's what the original Windows code that I'm porting produces:

      1b6412a1-9bb6-4e80-a5d4-ab693e3ceae9-image.png

      Can this be done using QToolBar, or do I need to create yet another custom widget to add to my growing zoo?

      mrjj 1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion @Perdrix last edited by

        @Perdrix
        Hi
        Well you can set its Movable property to false to prevent user moving it.
        And use setAllowedAreas to disallow any docking.

        1 Reply Last reply Reply Quote 2
        • Perdrix
          Perdrix last edited by

          Thanks for heads up

          1 Reply Last reply Reply Quote 0
          • First post
            Last post