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. How to set a fixed position from Widgets

How to set a fixed position from Widgets

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.5k 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.
  • M Offline
    M Offline
    Michelle02283
    wrote on last edited by
    #1

    Hello, in my programm I use a QStackedWidget. In it there are many different Widgets. If I show the current Widget from the QStackedWidget and change the layout in the current Widget, the whole Layout at the other Widgets in the QStackedWidget changes also. How can I set a fixed position in the QStackedWidget from the top to the bottom?

    1 Reply Last reply
    0
    • qwasder85Q Offline
      qwasder85Q Offline
      qwasder85
      wrote on last edited by
      #2

      Can you provide a little sample code, showing how you address the widget inside your QStackedWidget?

      M 2 Replies Last reply
      1
      • qwasder85Q qwasder85

        Can you provide a little sample code, showing how you address the widget inside your QStackedWidget?

        M Offline
        M Offline
        Michelle02283
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • qwasder85Q qwasder85

          Can you provide a little sample code, showing how you address the widget inside your QStackedWidget?

          M Offline
          M Offline
          Michelle02283
          wrote on last edited by
          #4

          @qwasder85 0_1520435536302_4fbc9657-d06f-4128-9e0c-42f007e7dbe3-grafik.png
          If I add another Button at a different Widget in the QStackedWidget these Buttons are at a different place in the Widget because every Widget gets longer.

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

            Hi,

            Are you properly using layouts for all of these widgets ?

            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