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. How to reduce QToolBar height?
Forum Updated to NodeBB v4.3 + New Features

How to reduce QToolBar height?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 121 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.
  • D Offline
    D Offline
    deleted385
    wrote on last edited by deleted385
    #1

    Here's how it looks if I change toolbar height:

    cap.png

    Both on the left and right QIcon size is 16. On the right (Query) the toolbar height is 18:

    toolbar->setIconSize(QSize(16, 16));
    toolbar->setMaximumHeight(18);
    toolbar->setContentsMargins(0,0,0,0);
    

    and it changes the icon size. In between the Query and Log, see how much space space that toolbar takes. How to adjust its size without affecting the icon size?

    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