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

How to add scroll bar action

Scheduled Pinned Locked Moved Solved General and Desktop
qt5.8.0qt 5.7scroll barscrolling
12 Posts 3 Posters 4.8k 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.
  • J jsulm
    9 Jul 2018, 06:43

    @Kinesis What action do you mean?

    K Offline
    K Offline
    Kinesis
    wrote on 9 Jul 2018, 06:52 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 .

    J 1 Reply Last reply 9 Jul 2018, 06:59
    0
    • K Kinesis
      9 Jul 2018, 06:52

      @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 .

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 9 Jul 2018, 06:59 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 9 Jul 2018, 07:02
      0
      • J jsulm
        9 Jul 2018, 06:59

        @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 9 Jul 2018, 07:02 last edited by
        #5

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

        J 1 Reply Last reply 9 Jul 2018, 07:03
        0
        • K Kinesis
          9 Jul 2018, 07:02

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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 9 Jul 2018, 07:03 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 9 Jul 2018, 08:21
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 9 Jul 2018, 07:34 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 9 Jul 2018, 07:56
            3
            • S SGaist
              9 Jul 2018, 07:34

              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 9 Jul 2018, 07:56 last edited by
              #8

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

              1 Reply Last reply
              0
              • J jsulm
                9 Jul 2018, 07:03

                @Kinesis Sure, you can. Did you try?

                K Offline
                K Offline
                Kinesis
                wrote on 9 Jul 2018, 08:21 last edited by aha_1980 7 Oct 2018, 04:19
                #9

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

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 9 Jul 2018, 11:47 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 10 Jul 2018, 11:13
                  2
                  • S SGaist
                    9 Jul 2018, 11:47

                    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 10 Jul 2018, 11:13 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
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 10 Jul 2018, 21:27 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

                      12/12

                      10 Jul 2018, 21:27

                      • Login

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