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 do the layout?
Forum Updated to NodeBB v4.3 + New Features

How to do the layout?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 809 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.
  • jronaldJ Offline
    jronaldJ Offline
    jronald
    wrote on last edited by
    #1

    Original:
    0_1505274208097_a.PNG

    Want to layout as below, and the tab widget will resize automatically when its parent resizes:
    0_1505274213151_b.PNG

    Does Qt Layout can solve problem quickly?

    Thanks.

    joeQJ 1 Reply Last reply
    0
    • Pradeep KumarP Offline
      Pradeep KumarP Offline
      Pradeep Kumar
      wrote on last edited by
      #2

      Hi,

      Dont use fixed size, u can check sizepolicy, expanding , Which will resize horizontally and vertically, as widget parent resizes.

      Thanks,

      Pradeep Kumar
      Qt,QML Developer

      1 Reply Last reply
      0
      • jronaldJ jronald

        Original:
        0_1505274208097_a.PNG

        Want to layout as below, and the tab widget will resize automatically when its parent resizes:
        0_1505274213151_b.PNG

        Does Qt Layout can solve problem quickly?

        Thanks.

        joeQJ Offline
        joeQJ Offline
        joeQ
        wrote on last edited by
        #3

        @jronald Hi,friend.welcome.

        if you want it in ui file. Just clicke your mouse in the QTabWidget parent. and then use hot key Ctrl+G to set the parent of QTabwidget to layout is QGridLayout.

        That is all.

        Just do it!

        jronaldJ 1 Reply Last reply
        3
        • joeQJ joeQ

          @jronald Hi,friend.welcome.

          if you want it in ui file. Just clicke your mouse in the QTabWidget parent. and then use hot key Ctrl+G to set the parent of QTabwidget to layout is QGridLayout.

          That is all.

          jronaldJ Offline
          jronaldJ Offline
          jronald
          wrote on last edited by
          #4

          @joeQ It works, thanks.

          1 Reply Last reply
          1

          • Login

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