Results 1 to 6 of 6

Thread: Tableview dialog as delegate

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2015
    Posts
    45
    Thanks
    8
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Tableview dialog as delegate

    I am trying to create a button delegate in the first column of a tableview that launches a dialog to edit the data in the row of the button.

    I get the delegate button. But, since setEditorData is not called by the clicked event of the button, I don't see how to get the data to fill in on the dialog.

    I can't see that the clicked event has access to the index or the model.

    Can anyone give me some tips or point me to an example?

    All the examples I've found are either just creating a button delegate or a spin box for a particular cell of the table.

    Regards,
    Mac
    Last edited by drmacro; 25th October 2015 at 19:03.

Similar Threads

  1. Issue with custom delegate in tableview
    By alizadeh91 in forum Qt Programming
    Replies: 4
    Last Post: 13th April 2013, 08:39
  2. Button Delegate Problem in TableView
    By alizadeh91 in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2013, 17:13
  3. Replies: 4
    Last Post: 22nd September 2010, 22:34
  4. Replies: 14
    Last Post: 19th March 2007, 08:48
  5. TableView Delegate questions
    By No-Nonsense in forum Qt Programming
    Replies: 3
    Last Post: 11th December 2006, 09:39

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.