×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    8

    Question List items with custom content and layout

    I've been banging my head against the wall for several days now with a question that probably has only one correct answer. What is the 'industry' way of making custom lists in Qt 4.6 (and up) for Maemo5?

    I've done some experimentations with QListWidget using setItemWidget(item,widget) for linking a very customized widget (extending QWidget) to the QListWidgetItem. But there are several problems with this solution. For example, I haven't been able to configure the list so that the item would increase height dynamically according to the content size. Instead, all the list items are forced to the same height without proper word wrapping or anything. So the results have been quite ugly.

    What I need is something very similar to the discussion thread of Maemo's pre-installed 'Conversations' tool. How would one implement that with Qt?

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: List items with custom content and layout

    Conversations is using GtkTreeView. It basically has 3 columns image, message and timestamp. I believe you can achieve the same using QListWidget.

Similar Threads

  1. Problem with CustomItem in Form
    By arinu in forum Mobile Java General
    Replies: 30
    Last Post: 2008-11-17, 10:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×