Results 1 to 5 of 5

Thread: Subclass QStandardItem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Subclass QStandardItem

    Well, setItemPrototype() would have no affect if you added QStandardItem instances to your model, so I wanted to verify that you hadn't accidentally done that.

    I assume you have also checked that the signatures of the overloaded methods match exactly?

    Cheers,
    _

  2. #2
    Join Date
    Aug 2015
    Posts
    3
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Subclass QStandardItem

    Quote Originally Posted by anda_skoa View Post
    Well, setItemPrototype() would have no affect if you added QStandardItem instances to your model, so I wanted to verify that you hadn't accidentally done that.

    I assume you have also checked that the signatures of the overloaded methods match exactly?

    Cheers,
    _
    Yes, they match.

    Edit: The problem was solved. It seems my project was not recompiled, after clean / build it works as expected. So everything is correct.
    Last edited by un; 14th August 2015 at 16:15.

Similar Threads

  1. Replies: 2
    Last Post: 15th April 2013, 06:33
  2. QStandardItemModel and QStandardItem
    By DmitryNik in forum Newbie
    Replies: 5
    Last Post: 9th October 2011, 17:17
  3. Tree without using of QStandardItem
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2010, 12:23
  4. Replies: 8
    Last Post: 12th February 2010, 02:41
  5. QStandardItem question.
    By alexandernst in forum Qt Programming
    Replies: 6
    Last Post: 21st July 2009, 01:01

Tags for this Thread

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.