Results 1 to 3 of 3

Thread: how to get qstandarditem from qmodelindex using qitemdelegate (qabstractitemmodel)

Threaded View

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

    Default Re: how to get qstandarditem from qmodelindex using qitemdelegate (qabstractitemmodel

    I am afraid I don't understand what you've written, but in order to make that code work you need to cast model to QStandardItemModel*.

    What do you need the item for?

    Cheers,
    _

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

    qsurvae (2nd July 2015)

Similar Threads

  1. Replies: 3
    Last Post: 21st June 2011, 06:25
  2. getting data & QModelIndex
    By alexandernst in forum Newbie
    Replies: 3
    Last Post: 6th August 2009, 19:43
  3. Problem with QModelIndex
    By Kesy in forum Qt Programming
    Replies: 6
    Last Post: 30th October 2008, 08:44
  4. QModelIndex problem!
    By landonmkelsey in forum Qt Programming
    Replies: 10
    Last Post: 28th August 2008, 19:46
  5. Replies: 3
    Last Post: 7th May 2006, 17:07

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.