Results 1 to 2 of 2

Thread: QStandardItem, QStyledItemDelegate, and QWebView

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default QStandardItem, QStyledItemDelegate, and QWebView

    Hi all,

    Reading the post <HTML and QStandardItem ?>, a question came across my mind:

    Is it possible to use QGraphicsWebView as items inside QListView? So instead of static HTML text being displayed, I have a specified number of mini-browser window in a QListView.

    My first thought was to simply replace QTextDocument with QGraphicsWebView in the paint function of the delegate, but then I am not sure how to actually draw the QGraphicsWebView. Please let me know which area I should look into if I would like to implement this. Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: QStandardItem, QStyledItemDelegate, and QWebView

    This should be possible. See for the first shot "setItemWidget". But as with all question regarding pimping itemviews and the always asked question whether it is possible to embed widgets within a listview for example, keep in mind that there is a reason for the delegate architecture and the reason is: Performance of large lists. How many items do you want to have in your list? If it is 20, then 20 QGraphicsWebViews should not be a problem. If you have 100, think about other solutions. If you have 1000 or more, you might get angry customers.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. QStyledItemDelegate with custom QWidget editor
    By stefanadelbert in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2010, 23:19
  2. Replies: 0
    Last Post: 1st August 2009, 17:39
  3. Question about subclassing QStyledItemDelegate
    By dpimka in forum Qt Programming
    Replies: 4
    Last Post: 10th July 2009, 17:09
  4. Setting Format in a QStyledItemDelegate
    By Airswoop1 in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2009, 22:01
  5. update custom QStyledItemDelegate after drag
    By dano in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2008, 18:29

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.