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 add scroll bar action

How to add scroll bar action

Scheduled Pinned Locked Moved Solved General and Desktop
qt5.8.0qt 5.7scroll barscrolling
12 Posts 3 Posters 5.9k 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.
  • jsulmJ jsulm

    @Kinesis What action do you mean?

    K Offline
    K Offline
    Kinesis
    wrote on last edited by
    #3

    @jsulm
    I just need to scroll down or up to see the items . I can't see all of my items on the display because of the listWidget frame size .That's why I need to scroll down to see other items . I don't know how can I add scrolling action .

    jsulmJ 1 Reply Last reply
    0
    • K Kinesis

      @jsulm
      I just need to scroll down or up to see the items . I can't see all of my items on the display because of the listWidget frame size .That's why I need to scroll down to see other items . I don't know how can I add scrolling action .

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @Kinesis said in How to add scroll bar action:

      I don't know how can I add scrolling action

      Like shown here: http://doc.qt.io/qt-5/qscrollarea.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Kinesis said in How to add scroll bar action:

        I don't know how can I add scrolling action

        Like shown here: http://doc.qt.io/qt-5/qscrollarea.html

        K Offline
        K Offline
        Kinesis
        wrote on last edited by
        #5

        @jsulm
        So , can I just add my listwidget on scrollarea ??

        jsulmJ 1 Reply Last reply
        0
        • K Kinesis

          @jsulm
          So , can I just add my listwidget on scrollarea ??

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #6

          @Kinesis Sure, you can. Did you try?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

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

            Hi,

            QListWidget already has scrollbars so why do you want to put it in a QScrollArea since it already provides that functionality ?

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

            K 1 Reply Last reply
            3
            • SGaistS SGaist

              Hi,

              QListWidget already has scrollbars so why do you want to put it in a QScrollArea since it already provides that functionality ?

              K Offline
              K Offline
              Kinesis
              wrote on last edited by
              #8

              @SGaist
              If so , how can I use these functionality?

              1 Reply Last reply
              0
              • jsulmJ jsulm

                @Kinesis Sure, you can. Did you try?

                K Offline
                K Offline
                Kinesis
                wrote on last edited by aha_1980
                #9

                @jsulm
                Thanks . I get it now. it's working :)

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

                  The scroll bars appear as soon as the content exceeds the size of the widget itself, unless you force the policy to always on.

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

                  K 1 Reply Last reply
                  2
                  • SGaistS SGaist

                    The scroll bars appear as soon as the content exceeds the size of the widget itself, unless you force the policy to always on.

                    K Offline
                    K Offline
                    Kinesis
                    wrote on last edited by
                    #11

                    @SGaist
                    Ya, I know that the scroll area will appear like u said . But in my case it wont appear . That's why I need to use scrollarea.

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

                      Did you try to determine why they don't appear ?

                      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