Results 1 to 7 of 7

Thread: QListWidget painting issue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 21 Times in 21 Posts

    Default Re: QListWidget painting issue

    Okay, here is an example I just wrote, I can reproduce my bug with it.

    It is an imageviewer based on a qtreeview to browse local disks, and a listwidget to display thumbnails.

    I'm using a QThread subclass dedicated to process the thumbnails smoothly (in fact, I use magick code, but here, I made an ugly Qt version ) : it emits a signal once an image is ready, and the corresponding item is being updated.

    Here, I can easily reproduce the bug on any directory that contain images...
    Randomly, the app crashes, because I don't handle really well the thread (I made it really quickly) : it crashes sometimes when you change directory while the thread is processing..)

    Hope some of you can confirm the visual issue ONLY

    Guilugi.
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QListWidget painting issue

    Quote Originally Posted by guilugi View Post
    Hope some of you can confirm the visual issue ONLY
    Sorry, no luck. The attached screenshot was taken with Qt 4.2.3 on X11.
    Attached Images Attached Images
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    guilugi (13th April 2007)

  4. #3
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 21 Times in 21 Posts

    Default Re: QListWidget painting issue

    Ok, thanks...It must really be my distrib...I'm checkin on Win32 right now.

    EDIT : I just compiled this example with Qt 4.2.3 on my WinXP computer, it's also quite messy.

    I'm posting to Trolltech ;-)

    Thanks for your help Jpn
    Last edited by guilugi; 13th April 2007 at 15:42.

  5. #4
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 21 Times in 21 Posts

    Default Re: QListWidget painting issue

    Okay, this issue will probably be rejected by Trolltech..

    I just purged all my Debian Qt4 packages, and compiled my own 4.3.0 version, and it's much much better, this particular issue has disappeared

Similar Threads

  1. custom painting in QListWidget
    By Andrew in forum Qt Programming
    Replies: 21
    Last Post: 30th March 2007, 13:16
  2. Mouse Drag selction Issue in QListWidget
    By vishal.chauhan in forum Qt Programming
    Replies: 5
    Last Post: 21st February 2007, 08:55
  3. Replies: 13
    Last Post: 15th December 2006, 11:52
  4. keypress while editing an item in QListWidget
    By Beluvius in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2006, 09:56
  5. QListWidget add QListWidgetItem
    By fellobo in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2006, 19:37

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.