Results 1 to 3 of 3

Thread: Need help with QListWidget

  1. #1
    Join Date
    Oct 2014
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Need help with QListWidget

    Hi,
    I ran into a problem with using QListWidget::setItemWidget(). Its so slowwwww.
    For example I have QLabel as widget.
    setItemWidget(some_item,some_label) x7000 this operation takes 6-7 minutes and 120 mb RAM.
    Is there some easier and light weight method to have List of HTML (support) lines?
    Or I should implement it my self using paint event?

  2. #2
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Need help with QListWidget

    You may use QListView

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

    Default Re: Need help with QListWidget

    Quote Originally Posted by mister_wang View Post
    Hi,
    I ran into a problem with using QListWidget::setItemWidget(). Its so slowwwww.
    For example I have QLabel as widget.
    setItemWidget(some_item,some_label) x7000 this operation takes 6-7 minutes and 120 mb RAM.
    Is there some easier and light weight method to have List of HTML (support) lines?
    Or I should implement it my self using paint event?
    You should use a proper delegate instead of setItemWidget().
    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. QListWidget
    By Carlsberg in forum Qt Programming
    Replies: 6
    Last Post: 17th October 2012, 07:21
  2. Replies: 2
    Last Post: 1st April 2011, 09:32
  3. QListWidget
    By babygal in forum Newbie
    Replies: 6
    Last Post: 1st September 2010, 12:01
  4. QListWidget with STL
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 21st July 2007, 16:16
  5. QListWidget help please
    By munna in forum Qt Programming
    Replies: 5
    Last Post: 28th November 2006, 12:16

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.