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. change QStackedWidget element's margins
Forum Updated to NodeBB v4.3 + New Features

change QStackedWidget element's margins

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 2.0k 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.
  • L Offline
    L Offline
    Loic B.
    wrote on last edited by
    #1

    Hello everyone,

    I'm trying to change element's margins in a QStackedWidget but i don't find the attribute to do it in Qt Designer. I would all widgets in the stacked widget have no margins, like that we can do with QLayout by set layout(Top/Bottom/Left/Right)Margin to 0.
    Is there a way to do that ?

    Thanks

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

      Hi
      a plain QStackedWidget have no margins.
      But any layout you apply have 9 as default values
      alt text

      1 Reply Last reply
      3
      • L Offline
        L Offline
        Loic B.
        wrote on last edited by
        #3

        Hi,
        Ok, i set a layout to my QStackedWidget, so how can i access its ? In the attributes tree, there is no "Layout" part. Is this mean i can't modify these values ?

        mrjjM 1 Reply Last reply
        0
        • L Loic B.

          Hi,
          Ok, i set a layout to my QStackedWidget, so how can i access its ? In the attributes tree, there is no "Layout" part. Is this mean i can't modify these values ?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Loic-B.
          Hi
          Look at object browser to the right.
          Under stacked is the "pages". The layout is there
          alt text

          1 Reply Last reply
          2
          • L Offline
            L Offline
            Loic B.
            wrote on last edited by
            #5

            What a dumb... Thank you and sorry for this stupid question, that was just under my eyes... ^^
            Problem solved !

            mrjjM 1 Reply Last reply
            1
            • L Loic B.

              What a dumb... Thank you and sorry for this stupid question, that was just under my eyes... ^^
              Problem solved !

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Loic-B.
              well eyes is the first place to go blind :)
              No worries. we are here to help and as long as people try them self
              and describe any issues with more than "it dont work" then no questions is too
              basic or anything like that :)

              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