Results 1 to 2 of 2

Thread: icon glitch in QListView

  1. #1
    Join Date
    Jul 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default icon glitch in QListView

    I have a QListView set up to use icons:

    self.setAttribute(Qt.WA_MacShowFocusRect, False)
    self.setViewMode(QListView.IconMode)
    self.setFlow(QListView.LeftToRight)
    self.setSpacing(5)
    self.setResizeMode(QListView.Adjust)
    self.setWrapping(True)

    (I'm using PyQt but that shouldn't matter I don't think).

    When I rename one of these items, I see something like this: http://imagebin.org/61886. In the screenshot I have renamed "material copy" to "mat." It stays like this until I click around a little bit. I know that calling reset() would fix it, but that would also reset my scroll position. Is there a less drastic way of dealing with this?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: icon glitch in QListView

    Could you prepare a minimal compilable example reproducing the problem? What Qt version do you use?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QMessageBox missing icon
    By zanth in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2010, 21:20
  2. QListView icon double clicking
    By been_1990 in forum Qt Programming
    Replies: 8
    Last Post: 28th April 2009, 20:05
  3. QListView scroll height (solved)
    By efegea in forum Qt Programming
    Replies: 0
    Last Post: 26th April 2009, 14:06
  4. Mac application and the Dock Icon
    By sekelsenmat in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2007, 10:23
  5. QListView word wrap
    By serega in forum Qt Programming
    Replies: 17
    Last Post: 30th August 2007, 03:13

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.