Results 1 to 2 of 2

Thread: How to edit view item with a modal dialog?

  1. #1
    Join Date
    Mar 2010
    Posts
    7
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to edit view item with a modal dialog?

    Hello!

    I need to edit QTableView's items with a modal dialog. I.e. when user double clicks the cell special modal dialog should be opened. As soon as user accepts modifications the dialog should be closed and the data set to the model item.

    Please give an advice.
    How can I implement this behavior.
    Should I provide a delegate class or not?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to edit view item with a modal dialog?

    just use signal and slots. On double click -> open a modal dialog with the value -> after accepting the dialog, update the model.

  3. The following user says thank you to Lykurg for this useful post:

    e79ene (26th March 2010)

Similar Threads

  1. Replies: 3
    Last Post: 17th December 2010, 03:06
  2. QT Modal Dialog
    By jiapei100 in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2010, 18:15
  3. Modal dialog not behaving
    By tpf80 in forum Qt Programming
    Replies: 7
    Last Post: 16th September 2008, 23:03
  4. Special Modal Dialog
    By adonel in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2008, 09:12
  5. System modal dialog!!
    By boss_bhat in forum Qt Programming
    Replies: 2
    Last Post: 23rd June 2006, 08:01

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.