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. QGridLayout
Forum Updated to NodeBB v4.3 + New Features

QGridLayout

Scheduled Pinned Locked Moved Solved General and Desktop
qgridlayout
5 Posts 3 Posters 913 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.
  • G Offline
    G Offline
    GrahamLa
    wrote on 20 Dec 2018, 17:40 last edited by
    #1

    Hi
    Is it possible to have a QGridLayout where the I can control the size of the cells?
    In the image I want the top row to be 'thinner' or less high

    0_1545327610073_d4ab846e-0cee-42ae-afd9-1198224214d5-image.png

    J 1 Reply Last reply 20 Dec 2018, 22:29
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 20 Dec 2018, 20:44 last edited by mrjj
      #2

      Hi
      Well the widgets you put in - defines the cell size.
      So if you limit a widget height (maxHeight), then yes, grid will be like that.
      alt text

      G 1 Reply Last reply 21 Dec 2018, 07:56
      1
      • G GrahamLa
        20 Dec 2018, 17:40

        Hi
        Is it possible to have a QGridLayout where the I can control the size of the cells?
        In the image I want the top row to be 'thinner' or less high

        0_1545327610073_d4ab846e-0cee-42ae-afd9-1198224214d5-image.png

        J Offline
        J Offline
        JonB
        wrote on 20 Dec 2018, 22:29 last edited by
        #3

        @GrahamLa
        I realise this is OT, but how do you get the kind of "toggle switch slide" buttons you have like against MaintenanceLights?

        1 Reply Last reply
        0
        • M mrjj
          20 Dec 2018, 20:44

          Hi
          Well the widgets you put in - defines the cell size.
          So if you limit a widget height (maxHeight), then yes, grid will be like that.
          alt text

          G Offline
          G Offline
          GrahamLa
          wrote on 21 Dec 2018, 07:56 last edited by
          #4

          @mrjj
          the problem is that they are layouts rather that widgets

          G 1 Reply Last reply 21 Dec 2018, 08:03
          0
          • G GrahamLa
            21 Dec 2018, 07:56

            @mrjj
            the problem is that they are layouts rather that widgets

            G Offline
            G Offline
            GrahamLa
            wrote on 21 Dec 2018, 08:03 last edited by
            #5

            @GrahamLa
            The problem can be solved by setting row stretch

            1 Reply Last reply
            2

            1/5

            20 Dec 2018, 17:40

            • Login

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