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. Docking QToolBar only next to another ToolBar, not below or on top.
Forum Update on Monday, May 27th 2025

Docking QToolBar only next to another ToolBar, not below or on top.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.9k 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.
  • M Offline
    M Offline
    Mazur
    wrote on last edited by
    #1

    Hello,

    I think it is my first post ever here because I never had such problem when I had to write here and I always used to ask on IRC channel but I am not really sure how to solve it. I have Main Window with custom QMenuBar, QStatusBar and central widget. I have also created two QToolBars - one on the left and another one on the right. Those Toolbars contains custom widgets and I have created them in such way because i want user to be able to move then around the screen (Left | Right only) but I want user be able to dock them only next to another QToolBar. The problem is that currently those ToolBars can also dock on Top or below each other so it looks bad.

    I have tried to delete this problem but I can't find any proper solution - the only hint I found is that when QToolBar has setminimumHeight and window size is minimum as possible then another QToolBar cannot place below/on top but only next to it. I would like to achieve something similar but by using some proper methods.

    Thank You,
    Mazur

    delete this->signature;

    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