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. qt Designer object position change when set another to visible or not

qt Designer object position change when set another to visible or not

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

    how to fix position of object in horizontal or vertical layout also when other object are set to visible or not

    1 Reply Last reply
    0
    • AxelViennaA Offline
      AxelViennaA Offline
      AxelVienna
      wrote on last edited by
      #2

      The idea behind layouts is that they group widgets automatically as they resize. If you want an item to keep its position, you can disable the others with myWidget->setEnabled(false); instead of hiding it completely. You can also „fill“ the position of invisible widgets by e.g. an empty label, which is less elegant.

      C++ and Python walk into a bar. C++ reuses the first glass.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved