Results 1 to 3 of 3

Thread: qlistview and scrollbar problem

  1. #1
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Question qlistview and scrollbar problem

    hi guys~

    I have some problem about qlistview stylesheet.

    I want to give padding to listview's left and top.

    because, items are too close listview's edge..

    but if I give padding to listview by stylesheet,

    listview's scrollbar is moved with items.

    I want to move only items! without scrollbar..

    if you can't understand my question, please show below image.

    helpme.jpg

    thankyou!

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qlistview and scrollbar problem

    Not sure if this is any different, but have you tries using setViewportMargins()?

    Cheers,
    _

  3. #3
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Default Re: qlistview and scrollbar problem

    thank you so much!! thank you~~

Similar Threads

  1. Replies: 1
    Last Post: 18th January 2013, 09:05
  2. Qlistview scrollbar invalid on windows
    By wushaowen in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2011, 03:16
  3. ScrollBar problem
    By kamlmish in forum Newbie
    Replies: 6
    Last Post: 19th January 2011, 11:47
  4. QListView's scrollbar stylesheet
    By luochen601 in forum Qt Programming
    Replies: 4
    Last Post: 9th September 2010, 07:34
  5. Problem with the scrollbar
    By mani_cbz in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 14th July 2009, 10:24

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.