Results 1 to 2 of 2

Thread: Styling QAbstractScrollArea / QListWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    7
    Qt products
    Qt3 Qt4
    Thanked 1 Time in 1 Post

    Default Styling QAbstractScrollArea / QListWidget

    Hello, I am having a small problem styling Scroll Areas.

    The attached picture should demonstrate what I am talking about. When there is only a vertical scroll bar showing, the small box that would normally sit in the corner between the 2 Horizontal and vertical scrollbars is visible, and offset downwards so as to obscure the border.

    I have a border-width set on QFrame, and this object looks to be a QFrame, and is inheriting that border-width. cant seem to find a way of selecting this box to set its border-width. It seems to be positioned ok when there are both scroll bars.

    QWidget>QListWidget
    {
    border-width: 0px;
    }

    the above works, but also removed the border from the QListWidgets display frame, that contains the items.

    Any suggestions ?

    Thanks

    Rob.
    Attached Images Attached Images
    Last edited by rmwatson; 27th June 2010 at 00:59.

Similar Threads

  1. Replies: 0
    Last Post: 30th April 2010, 06:22
  2. QAbstractScrollArea metrics
    By Olivier Berten in forum Qt Programming
    Replies: 0
    Last Post: 1st February 2010, 09:18
  3. QScrollArea vs. QAbstractScrollArea
    By zaphod.b in forum Qt Programming
    Replies: 15
    Last Post: 7th July 2009, 16:26
  4. QAbstractScrollArea::setViewportMargins() not working :(
    By montylee in forum Qt Programming
    Replies: 7
    Last Post: 21st January 2009, 16:52
  5. QAbstractScrollArea and paintEvent
    By babu198649 in forum Newbie
    Replies: 13
    Last Post: 4th August 2008, 11:56

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.