Results 1 to 2 of 2

Thread: setObjectName for QStandardItem

  1. #1
    Join Date
    Mar 2010
    Posts
    22
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default setObjectName for QStandardItem

    Hi

    How can I specify an Object Name for a QStandardItem as I don't see any aPI in this class for setting the name of Object.
    Do I need to subclass QStandardItem and Qobject into a new class.

    Thanks

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: setObjectName for QStandardItem

    QStandardItem doesn't inherit QObject, therefore it doesn't have QObject's SetObjectName method.

    However, you do have row, column, index and data.

Similar Threads

  1. QStandardItem color modification
    By prashant in forum Qt Programming
    Replies: 0
    Last Post: 5th November 2009, 09:24
  2. HTML and QStandardItem ?
    By alexandernst in forum Newbie
    Replies: 18
    Last Post: 4th August 2009, 12:07
  3. UTF8 and QStandardItem?
    By alexandernst in forum Newbie
    Replies: 17
    Last Post: 26th July 2009, 18:29
  4. QStandardItem question.
    By alexandernst in forum Qt Programming
    Replies: 6
    Last Post: 21st July 2009, 01:01
  5. Subclassing QStandardItem
    By aLiNuSh in forum Newbie
    Replies: 4
    Last Post: 5th April 2007, 20:00

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.