Results 1 to 2 of 2

Thread: Communication 2 Forms

  1. #1
    Join Date
    Sep 2006
    Posts
    42
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Post Communication 2 Forms

    Hi,

    As I make to communicate 2 forms.

    Necessary that when the user writes in a QLineEdit in the clic Form1 in (button OK) the text appears in the Form2.

    Cristiano.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Communication 2 Forms

    You could create a signal slot connection between the forms. Form1 could have a signal informing that the text has been entered (emitted when the button is pressed) and Form2 could have a slot for setting the text. Further reading: Signals and Slots.
    J-P Nurmi

Similar Threads

  1. C++ Library for serial communication
    By dec0ding in forum General Programming
    Replies: 7
    Last Post: 8th July 2007, 18:18
  2. Writing Data Aware Forms in QT4.
    By gsQT4 in forum Qt Programming
    Replies: 5
    Last Post: 21st March 2007, 10:35
  3. pass variables between 2 forms
    By restiz in forum Qt Programming
    Replies: 7
    Last Post: 17th June 2006, 16:13
  4. How to toggle between 2 forms
    By safknw in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2006, 10:34
  5. Accessing objects in different forms
    By Lebowski in forum Newbie
    Replies: 17
    Last Post: 13th April 2006, 11:20

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.