Results 1 to 3 of 3

Thread: How can I change the QScrollArea silders thickness?

  1. #1
    Join Date
    Aug 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy How can I change the QScrollArea silders thickness?

    Hi.
    I am having some troubles to change the thickness of the silders in a QScrollArea. The goal is to use it with a touch screen.

    I have already tried some things like:

    - scrollArea->verticalScrollBar()->setFixedWidth(50);
    - scrollArea->verticalScrollBar()->setMinimumWidth(50);

    The result is just that the small arrows are not well displayed but the thickness of the slider remains very small.

    Does somebody have an idea to do it?

    Thank you very much!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How can I change the QScrollArea silders thickness?

    You can either use QApplication::globalStrut or implement your own style (possibly through a style proxy) and change the respective style hint.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following 2 users say thank you to wysota for this useful post:

    minimoog (31st August 2009), vkincaid (31st August 2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How can I change the QScrollArea silders thickness?

    QApplication::globalStrut works fine for us. Thank you very much for the fast answer.

Similar Threads

  1. Replies: 1
    Last Post: 13th September 2008, 12:00

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.