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. Non-dockable floating toolbar
Forum Updated to NodeBB v4.3 + New Features

Non-dockable floating toolbar

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 493 Views 2 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    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?

    mrjjM 1 Reply Last reply
    0
    • PerdrixP Perdrix

      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?

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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
      2
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by
        #3

        Thanks for heads up

        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