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

Position of QListWidget scrollbars

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.4k 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    By default QListWidget shows vertical scrollbar to right; How can I show vertical scrollbar at left?

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

      Hi,

      You could try to use setLayoutDirection with RightToLeft (it might have other side effects)

      Hope it helps

      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
      • M Offline
        M Offline
        mbnoimi
        wrote on last edited by
        #3

        [quote]You could try to use setLayoutDirection with RightToLeft (it might have other side effects)[/quote]

        This not suitable because I already use RTL/LTR layout, It may suitable to single language applications but not for multi-language ones.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbnoimi
          wrote on last edited by
          #4

          See the problem between RTL/LTR in case I used at over single component:

          !http://img545.imageshack.us/img545/2373/uw7d.png(RTL)!

          !http://img138.imageshack.us/img138/6733/ukkz.png(LTR)!

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

            I see what you mean. In that case you should rather hide the QListWidget scrollbars permanently and add your own. So you can place it where appropriated. You can connect it to the original scroll bars to update the range and values.

            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