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. Problem with designing a form

Problem with designing a form

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 619 Views 2 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by
    #1

    Hi guys,

    I'm reading the book C++ GUI Programming with Qt-4 second edition. On page 48 of that book, the author wants us to design a form using the Designer tool. I made it this way:

    alt text

    On that page, the item no. 6 says this:
    Click the form to deselect any selected widgets, then click Form|Lay Out in a Grid. Now drag the form's bottom-right
    corner up and left to make the form as small as it will go. The form should now match Figure 2.13 (b).

    I do this. But when moving it to up and left to make it as small as possible, one of the vertical spacers (the one below the Cancel button) will go to size zero (and vanishes) and the second one (the one between the first and the second group boxes) will become a blue line with no height! This way:

    alt text

    It's not the same as the Figure 2.13 b in the book!

    Where did I make mistakes please?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! That's ok. The sizes of the buttons etc depend on the OS and the screenshots for the book were taken on Linux. It's totally normal (and on purpose) that your GUI looks different on a different platform.

      1 Reply Last reply
      4
      • tomyT Offline
        tomyT Offline
        tomy
        wrote on last edited by
        #3

        Thank you very much. :)

        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