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. The size of QPushButton breaks layout height (MacOS)

The size of QPushButton breaks layout height (MacOS)

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 985 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.
  • Y Offline
    Y Offline
    yura-vel
    wrote on last edited by
    #1

    Lets consider situation with QFormLayout. For example need to add button to the layout row:

    !http://piccy.info/view3/7227575/935007f4b0e125cd8986fb5915403063/(layout)!
    (http://piccy.info/view3/7227575/935007f4b0e125cd8986fb5915403063/)

    As you see the height of layout with button is bigger than height of other rows. This is because the own height of the button is bigger than height of the line editor - there is empty space around the button:

    !http://piccy.info/view3/7227612/9fd2b09800690208f7bd76fb5c780107/(button)!
    (http://piccy.info/view3/7227612/9fd2b09800690208f7bd76fb5c780107/)

    In result all layouts with QPushButton becomes broken. Even in standard dialogs (QMessageBox) there are big margins around buttons in the bottom of the window.

    As I know this issue is relevant only for MacOs.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of OS X are you running ? Also which version of Qt are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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