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. [Ubuntu] Window in UI editor not the same height as the built window
Forum Updated to NodeBB v4.3 + New Features

[Ubuntu] Window in UI editor not the same height as the built window

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 724 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.
  • IzzoI Offline
    IzzoI Offline
    Izzo
    wrote on last edited by
    #1

    Hi there,

    I'm very new to Qt and am having an issue regarding the window size after building the project. In the editor mode, I am placing a widget along with a pushbutton and textbox near the bottom. After I carefully align the pushbutton and textbox to be near the bottom of the window, I build the project. The resulting window shows a clear gap between the pushbutton/label and the bottom of the window (please refer to the picture here - http://imgur.com/Y7JWk5a).

    I feel like I'm in a position where I'm so new to Qt that I can't properly debug it. Would anyone here have any idea of what's causing this gap? Padding issue? OS specific issue?

    I appreciate any help!

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

      Hi and welcome to devnet,

      Are you positioning them by hand or are you using Qt's layouts for that ?

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

      IzzoI 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Are you positioning them by hand or are you using Qt's layouts for that ?

        IzzoI Offline
        IzzoI Offline
        Izzo
        wrote on last edited by
        #3

        @SGaist Hi there,

        They have been placed using layouts. I just can't seem to understand why the entire window height is increasing in size then what the editor shows.

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

          Silly question but are all your elements in layouts ? Not just buttons.

          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