Results 1 to 2 of 2

Thread: No index in TableView's delegate - how to reference actual model data object?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: No index in TableView's delegate - how to reference actual model data object?

    While it is kind of annoying that model.index isn't just available as the model's row, you can use styleData.row instead.

    Cheers,
    _

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

    sedi (28th February 2016)

Similar Threads

  1. Replies: 9
    Last Post: 14th February 2013, 19:39
  2. Replies: 2
    Last Post: 27th October 2012, 09:09
  3. Replies: 1
    Last Post: 7th August 2012, 12:41
  4. Replies: 12
    Last Post: 24th July 2010, 08:12
  5. How to populate delegate with model data.
    By kaushal_gaurav in forum Qt Programming
    Replies: 2
    Last Post: 4th August 2008, 09:31

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.