Results 1 to 2 of 2

Thread: SEnding data between forms

  1. #1
    Join Date
    Oct 2010
    Posts
    19
    Qt products
    Qt4

    Default SEnding data between forms

    I have MainWIndow. From that window i create dialog Window with table.
    Qt Code:
    1. WideSearch* wWideSearch=new WideSearch;
    2. wWideSearch->setSourceModel (createRecordModel(wWideSearch));
    3. wWideSearch->show();
    4. wWideSearch->raise();
    5. wWideSearch->activateWindow()
    To copy to clipboard, switch view to plain text mode 
    On double click on table i need close dialog Window and send data from QModelIndex to mainWindow. With closing second form there is no problem,but i don't know how send data back to mainWindow?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: SEnding data between forms

    Have a look at signals and slots.
    http://doc.trolltech.com/4.7/signalsandslots.html
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Sending raw data using QextSerialPort [solved]
    By DrDonut in forum Qt Programming
    Replies: 1
    Last Post: 7th January 2009, 14:14
  2. sending data over signal
    By gyre in forum Newbie
    Replies: 1
    Last Post: 17th December 2007, 00:10
  3. Replies: 3
    Last Post: 7th December 2007, 08:09
  4. sending encrypted data via mail using smtp
    By vermarajeev in forum General Programming
    Replies: 20
    Last Post: 14th August 2007, 20:47
  5. Writing Data Aware Forms in QT4.
    By gsQT4 in forum Qt Programming
    Replies: 5
    Last Post: 21st March 2007, 11:35

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.