Results 1 to 20 of 20

Thread: Custom ListView. Using the model / view framework.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Nov 2010
    Posts
    82
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 9 Times in 9 Posts

    Default Re: Custom ListView. Using the model / view framework.

    because your model is destroyed at the end of the function.
    if you put ui->listView->setModel(new TarefaModel(5, this));
    does it work ?

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

    plopes21 (2nd May 2012)

Similar Threads

  1. Replies: 9
    Last Post: 26th May 2011, 13:29
  2. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 21:23
  3. Data structure reference in Model/View Framework
    By jimc1200 in forum Qt Programming
    Replies: 4
    Last Post: 14th September 2009, 21:23
  4. Model/View framework: streaming data in a QTableView
    By yannickt in forum Qt Programming
    Replies: 6
    Last Post: 24th October 2008, 01:06
  5. Model-view: Creating a custom view
    By taboom in forum Qt Programming
    Replies: 5
    Last Post: 17th August 2007, 21:36

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.