Results 1 to 4 of 4

Thread: QListWidget selection custom painting problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QListWidget selection custom painting problem

    Try call the function viewport()->repaint();

  2. #2
    Join Date
    Nov 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QListWidget selection custom painting problem

    I've connected signal itemselectionchanged and i've called vieport()->repaint but unfortunatelly with no luck selected item still is 30px height and should be 60

  3. #3
    Join Date
    Nov 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QListWidget selection custom painting problem

    what is strange during paint method option.rect gives correct size. The problem is that on the sreen selected item is diplaying 30px height

Similar Threads

  1. custom painting in QListWidget
    By Andrew in forum Qt Programming
    Replies: 21
    Last Post: 30th March 2007, 14:16
  2. Replies: 16
    Last Post: 7th March 2006, 16:57

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