Results 1 to 6 of 6

Thread: How to pass data from QDialog to MainWindow?

Threaded View

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

    Default Re: How to pass data from QDialog to MainWindow?

    first use QDialog. Second, I would use a getter function in your dialog. would look like:
    Qt Code:
    1. MyDialog dlg;
    2. if (dlg.exec())
    3. {
    4. pair/list/or whatever xyz = dlg.getValues();
    5. }
    To copy to clipboard, switch view to plain text mode 

  2. The following 2 users say thank you to Lykurg for this useful post:

    ajo (21st February 2013), Saigon (16th November 2009)

Similar Threads

  1. Replies: 7
    Last Post: 25th July 2016, 14:42
  2. Replies: 2
    Last Post: 27th June 2009, 19:26
  3. How to return a lot of data from a QDialog
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2008, 12:10
  4. TextEdit in QDialog not accepting data
    By nbkhwjm in forum Qt Programming
    Replies: 3
    Last Post: 2nd October 2008, 03:53
  5. Replies: 2
    Last Post: 23rd May 2007, 03:51

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.