Results 1 to 4 of 4

Thread: createEditor() is not called in custom delegate

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default createEditor() is not called in custom delegate

    Hi,

    i nearly searched all the web for this problem. My last chance is to post my problem here.

    I need a tableWidget that contains multiple strings and checkboxes in one row. These checkboxes should change their value be clicking once.
    So i created a delegate to customize a tableWidget. It almost does the things i needed, but when i change the triggers for editing the tableWidget to "SelectedClick" only, the delegate functions "createEditor","setEditor" and "setModelData" would not be called. The are called, if i double click the checkbox field, to enter editor mode, but that's not what i want.

    So, does anyone have an hint?
    Thanks.

    For your information: Qt 4.6.3 on ubuntu and that little attached project is only a test to demonstrate my problem...
    Attached Files Attached Files

Similar Threads

  1. Error in custom delegate
    By philacorns in forum Newbie
    Replies: 4
    Last Post: 21st April 2010, 05:41
  2. Replies: 3
    Last Post: 5th April 2010, 21:20
  3. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  4. Replies: 0
    Last Post: 1st February 2010, 11:00
  5. Question about custom view (or custom delegate)
    By skuda in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2009, 20:06

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.