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. Changing from ScrollBar to FixedWidth

Changing from ScrollBar to FixedWidth

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.3k 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
    MaxDevI
    wrote on last edited by
    #1

    Hello, I am a new Qt user, and am looking for some help on a legacy project I have taken over. I want to remove scroll bar from a grid layout, having two columns instead.

    Currently, I have a window with a page in it that scrolls vertically. I want to remove the scroll bar and place all the extra information that would previously be scrolled to, in another column right next to the first.

    I am currently using a QGridLayout where the height of each row will take the size of the largest QGroupBox.

    Thank you for your time, any help or ideas would be greatly appreciated.

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

      Hi and welcome to devnet,

      Can you maybe post a picture of what you have and one of what you want to have ?

      Your current situation isn't really clear.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Can you maybe post a picture of what you have and one of what you want to have ?

        Your current situation isn't really clear.

        M Offline
        M Offline
        MaxDevI
        wrote on last edited by
        #3

        @SGaist

        I want something like this

        I want something like this

        but currently, I have something like this

        alt text

        Thank you

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

          Do you really need group boxes ?

          You could simply put two QListView/Widget side by side.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            Do you really need group boxes ?

            You could simply put two QListView/Widget side by side.

            M Offline
            M Offline
            MaxDevI
            wrote on last edited by
            #5

            @SGaist I have names of the groups so I guess the photo looks a bit more like this than what I posted previously.

            alt text

            I tried changing the groupBox to a QListView and it didn't seem to do anything, yet I am betting it is just due to the nature of the code.

            FYI, there are around 2,000 lines of code in this project....with 0 comments. I am having some trouble locating exactly what I am supposed to change, but I will keep at it.

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

              Ok, the you could simply use a QHBoxLayout and put the QGroupBox on beside the other.

              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