Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QAbstractScrollArea: scroll bar style
Forum Updated to NodeBB v4.3 + New Features

QAbstractScrollArea: scroll bar style

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 3.3k 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.
  • V Offline
    V Offline
    vlad2048
    wrote on last edited by
    #1

    Hi all

    Have anybody noticed that subclasses of QAbstractScrollArea (e.g. QTextEdit, QGraphicsView, etc) incorrectly styling their scrollbars? If you just place a QPlainTextEdit and set its scrollbar polices to ScrollBarAlwaysVisible, and then place a QScrollBar near it, they will be painted with different styles on a real device (the QPlainTextEdit would paint its scrollbars with standard Windows style, but the ordinal scrollbars would be painted with a most likely QMacStyle). Does anybody know how to solve this problem.

    Also it seems that QAbstractScrollArea implemented assuming a fixed constant scrollbar height and width, and does not take into account the user defined size. When I set the width of vertical scrollbar to a lesser value, the scrollbar remains at the same X coordinate (an unoccupied space left between the right border of scrollbar and the right border of widget). And even move(dx, 0) can't solve this problem.

    Thanks ahead

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      [quote author="vlad2048" date="1292745900"]Hi all

      Have anybody noticed that subclasses of QAbstractScrollArea (e.g. QTextEdit, QGraphicsView, etc) incorrectly styling their scrollbars? If you just place a QPlainTextEdit and set its scrollbar polices to ScrollBarAlwaysVisible, and then place a QScrollBar near it, they will be painted with different styles on a real device (the QPlainTextEdit would paint its scrollbars with standard Windows style, but the ordinal scrollbars would be painted with a most likely QMacStyle). Does anybody know how to solve this problem.

      [/quote]

      Why are you posting this on the mobile forum? It could have made sense if you used a "mobile" style, but you say you're using a Windows style...

      Anyway, a simple test "works for me". Can you produce a testcase of the problem?

      [quote]

      Also it seems that QAbstractScrollArea implemented assuming a fixed constant scrollbar height and width, and does not take into account the user defined size. When I set the width of vertical scrollbar to a lesser value, the scrollbar remains at the same X coordinate (an unoccupied space left between the right border of scrollbar and the right border of widget). And even move(dx, 0) can't solve this problem.

      [/quote]

      This is likely to be a bug.

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      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