Results 1 to 6 of 6

Thread: QScrollBar up-down arrow icon

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default QScrollBar up-down arrow icon

    Hi,

    How to put QScrollBar up and down arrows icon's?

    I tried ;

    Qt Code:
    1. QScrollBar::up-arrow
    2. {
    3. uparrow-icon: url(icon.png);
    4. }
    To copy to clipboard, switch view to plain text mode 

    and

    Qt Code:
    1. QScrollBar::up-arrow:vertical
    2. {
    3. uparrow-icon: url(icon.png);
    4. }
    To copy to clipboard, switch view to plain text mode 

    but it didn't work..

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QScrollBar up-down arrow icon

    It's "image: url();"

  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QScrollBar up-down arrow icon

    Hi, thanks for your answer but if you mean

    Qt Code:
    1. QScrollBar::up-arrow:vertical
    2. {
    3. image: url(icon.png);
    4. }
    To copy to clipboard, switch view to plain text mode 

    by image: url(); , it doesn't work as well.

    Can you be a bit more specific?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QScrollBar up-down arrow icon

    It works but not alone. I ran in that difficulty time ago. Have a look at "Qt Style Sheets Examples" in the documentation and use their entire style sheet. Past your image inside and it will work. Then delete one row after the other till you find the other options required for setting the image. Sorry but I didn't remember the right configuration for that.

  5. #5
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QScrollBar up-down arrow icon

    That what i'm doing right now..I got confused at this point. Actually, I wonder if uparrow-icon and downarrow-icon properties are working. Anyway thanks again.

  6. #6
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QScrollBar up-down arrow icon

    Qt Code:
    1. QScrollBar::up-arrow:vertical
    2. {
    3. background: url("styles/bluesky/up_arrow.png");
    4. background-repeat: none;
    5. left: 3px;
    6. top: 5px;
    7. }
    To copy to clipboard, switch view to plain text mode 

    I finally tried this out but it didn't work as well..I'm stuck in this problem. Any ideas could be very helpful..

Similar Threads

  1. QScrollBar up and down arrow are not visible properly.
    By kunalnandi in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 23rd March 2009, 08:16
  2. Removing down-arrow
    By zgulser in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2009, 08:55
  3. QScrollBar arrow display
    By sgg245 in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2009, 06:57
  4. QScrollBar arrow display
    By sgg245 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 16th February 2009, 06:36
  5. arrow button
    By boss_bhat in forum Qt Programming
    Replies: 3
    Last Post: 5th June 2006, 12:16

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.