Results 1 to 3 of 3

Thread: Modifying Appearance of QScrollbar

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    16
    Thanks
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Modifying Appearance of QScrollbar

    I'm using a small black and white screen and need the scrollbar to just be a black slider in a black outer frame with no arrows. I got what I wanted using style sheets but including them in the configuration when installing takes up too much space so I can't use them. Is it possible to remove the arrows by inheriting from QStyle or something? And if so how? thanks

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Modifying Appearance of QScrollbar

    if you just wanted to style the scroll bar i dont understand how one line fills your space ?
    scrollbar->setStyleSheet("my long style sheet");

    if you are going to write a QStyle class than you will end up writing more code.

  3. #3
    Join Date
    Dec 2009
    Posts
    16
    Thanks
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Modifying Appearance of QScrollbar

    By taking up too much space I meant the size of the executable, in Mb, when the application is built statically. To use style sheets means the executable is capable of reading scripts, it makes the executable about 500Kb bigger which I can't afford (its in a radio without much flash). I've started to use my own QStyle but I haven't been able to figure out how to remove the arrows and give the other controls of the scrollbar their space, can this be done using a derived style?

Similar Threads

  1. Replies: 1
    Last Post: 7th October 2008, 12:11
  2. How to improvise listViewItem appearance
    By qwakaw in forum Qt Programming
    Replies: 1
    Last Post: 1st September 2008, 11:01
  3. QMessageBox buttons appearance
    By yartov in forum Qt Programming
    Replies: 6
    Last Post: 26th June 2008, 01:36
  4. QPushbutton Flat property and icon appearance.
    By darpan in forum Qt Programming
    Replies: 1
    Last Post: 4th November 2006, 08:30
  5. Replies: 21
    Last Post: 13th March 2006, 14:05

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
  •  
Qt is a trademark of The Qt Company.