Results 1 to 11 of 11

Thread: Problem with events changing behavior of QListWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem with events changing behavior of QListWidget

    Quote Originally Posted by riklaunim View Post
    There may be some small reasons (I don't know if they can be "moved" to the qdirmodel solution) - like detecting file MIME (and based on this - icon).
    Yes, that's not a problem. You use QFileIconProvider for that.
    Should I use the model instead of QListWidget/QDir?
    Yes, I think so. Also bear in mind there are two file-system models - QDirModel and QFileSystemModel, so choose the one that's best for your needs.

    And regardless of whether you use model based approach or item based approach reimplementing low level events where appropriate signals are available might not be the best idea.

  2. The following user says thank you to wysota for this useful post:

    riklaunim (22nd December 2008)

Similar Threads

  1. Replies: 16
    Last Post: 7th March 2006, 16:57

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.