Results 1 to 3 of 3

Thread: ListView problems

  1. #1
    Join Date
    Dec 2009
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default ListView problems

    I am just beginning to learn Qt and have read in the independent QT tutorial about QListView and QListViewItem. When I try to create an instance of QListViewItem, QtCreator's code completion feature does not show the constructor details. Furthermore, it is not listed in the API in the help option. I'm wondering whether I am looking at two different versions of Qt, but it looks like QListViewItem is not supported in the version I am using. So if anyone could help me, I'd like to know how to manipulate list items in ListView and TreeView controls. I'm sorry, but I'm having difficulty with the API reference.

  2. #2
    Join Date
    Nov 2009
    Posts
    129
    Thanks
    4
    Thanked 29 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: ListView problems

    I think you must be looking at this tutorial. It is based on Qt 3.3; the current version of Qt is 4.6.

    QListView now works with the Model/View Architecture, which was introduced in Qt 4.0. The documentation at that last link might help you get started.

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

    waitingforzion (26th December 2009)

  4. #3
    Join Date
    Dec 2009
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: ListView problems

    Thank you so much. I've got it working now.

Similar Threads

  1. listview
    By addu in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2009, 12:05
  2. Editing directly in a ListView!
    By Humble in forum Qt Programming
    Replies: 2
    Last Post: 29th August 2007, 08:37
  3. SQLite make problems
    By raphaelf in forum Newbie
    Replies: 21
    Last Post: 3rd July 2007, 14:40
  4. How to return elements from a ListView
    By nikau in forum Newbie
    Replies: 1
    Last Post: 23rd January 2007, 07:44
  5. filtering big listview causes slowdown
    By soul_rebel in forum KDE Forum
    Replies: 1
    Last Post: 24th May 2006, 13:31

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.