Results 1 to 2 of 2

Thread: example code of table view with a custom delegate?

  1. #1
    Join Date
    Jun 2011
    Posts
    19
    Thanks
    3

    Default example code of table view with a custom delegate?

    Hey, im looking for some example code that includes a table of widgets, to gain an understanding of how the delegates-in-view code works.


    I checked out both examples provided by qt but they were pretty complex and more than what i wanted (not looking to edit things, but rather just put labels and maybe pictures inside tables and hide the table lines)

    Thanks!

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: example code of table view with a custom delegate?

    Did you look at Pixelator Example, it is just a non editable deltegate with custom painting on it. I don't think it is complex (but it looks so)

    If you still feel this is not simple, then I would recommend to display a custom items/widges in a view, then when it comes to edting then you can focus on delgates.

    Eidt: This example is simplest Spin Box Delegate Example

Similar Threads

  1. Replies: 5
    Last Post: 3rd April 2010, 04:07
  2. How to code for multiple sql table to view in QTableView ?
    By innobleday in forum Qt Programming
    Replies: 1
    Last Post: 15th March 2010, 12:18
  3. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  4. Question about custom view (or custom delegate)
    By skuda in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2009, 20:06
  5. Replies: 1
    Last Post: 13th July 2006, 21:10

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.