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. [SOLVED] the horizontal layout widget's height is 0?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] the horizontal layout widget's height is 0?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.5k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hi, I've little problem with the horizontal layout widget below(the focused one under the second push button) that is created with a null height, and that I can't add inside it other widgets:

    !http://picsee.net/upload/2014-04-28/fc8343beaf97.png(0)!

    so how to do to add widgets inside it? thanks.

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

      Hi,

      Your image is not visible so it's pretty much impossible to help you

      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
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        Hi,

        The image is visible now.

        I would break the top most layout and your 0 height layout should get more room so you can drag other widgets in it.
        Afterwards add yor top most layout again and the sizehint of the newly added widgets should force the needed height.

        Hope it helps.

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          [quote author="Eddy" date="1398715087"]Hi,

          The image is visible now.

          I would break the top most layout and your 0 height layout should get more room so you can drag other widgets in it.
          Afterwards add yor top most layout again and the sizehint of the newly added widgets should force the needed height.

          Hope it helps.[/quote]

          yes, that really helps! I solved the problem, by setting layoutTopMargin to a higher value then I could drag other widgets successfully before resetting layoutTopMargin to 0. Thanks!

          1 Reply Last reply
          0
          • EddyE Offline
            EddyE Offline
            Eddy
            wrote on last edited by
            #5

            Glad you got it solved.

            Please edit your first post and prepend [edit] to it. This informs others there is a solution here already.

            Qt Certified Specialist
            www.edalsolutions.be

            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