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] Problem creating multi-frame application
QtWS25 Last Chance

[SOLVED] Problem creating multi-frame application

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.2k Views
  • 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.
  • V Offline
    V Offline
    Veve
    wrote on last edited by Veve
    #1

    After i create a frame, resize it to the application size, when i try to add second frame, instead of being two frames on centralWidget, there are just frame, and frame_2 is inside frame. How can i fix this and move also frame_2 to centralWidget?
    Screenshot: http://i.imgur.com/4cbsTSt.png

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

      Hi and welcome
      Make sure when you drag the frame_2 to hit the centralwidget and not frame_1

      So its easier to drag both to central in small size and then scale them after.

      Or you should also be able to drag frame_2 to the status bar in button and have assigned to central.

      Or could Right click central widget and add a horz/vert layout. Then when you drag to it, it will show a little line of where it will insert.

      1 Reply Last reply
      1
      • V Offline
        V Offline
        Veve
        wrote on last edited by
        #3

        The problem is that i need to make first frame, full size, and after it's done, i would need to do the frame2 when frame1 is finished. Also, on the design page how i could hide frame2 and show only frame1 and then hide frame1 and show only frame2? Like this on java: https://youtu.be/ZDTEqbp8AWQ

        mrjjM 1 Reply Last reply
        0
        • V Veve

          The problem is that i need to make first frame, full size, and after it's done, i would need to do the frame2 when frame1 is finished. Also, on the design page how i could hide frame2 and show only frame1 and then hide frame1 and show only frame2? Like this on java: https://youtu.be/ZDTEqbp8AWQ

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

          @Veve

          Ahh have a look at the Stacked Widget.
          It has pages (right click to add) and will make it easier to manage than putting frames on top of
          each other.

          You can stack 2 frames on top but it will be annoying to edit and manage.
          You could set the size of frames in the property editor to the left
          an and that way make both frames be size of window. ( type geometry)

          Hope it helps

          V 1 Reply Last reply
          1
          • mrjjM mrjj

            @Veve

            Ahh have a look at the Stacked Widget.
            It has pages (right click to add) and will make it easier to manage than putting frames on top of
            each other.

            You can stack 2 frames on top but it will be annoying to edit and manage.
            You could set the size of frames in the property editor to the left
            an and that way make both frames be size of window. ( type geometry)

            Hope it helps

            V Offline
            V Offline
            Veve
            wrote on last edited by
            #5

            @mrjj Yep, that's it, tried now the Stacked Widget and it did what i wanted. Thank you.

            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