Results 1 to 12 of 12

Thread: How to connect mainwindow and dialog using signal,slot

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Sep 2013
    Posts
    44
    Thanks
    9
    Qt products
    Qt5
    Platforms
    MacOS X Windows Android

    Default Re: How to connect mainwindow and dialog using signal,slot

    my connect is in the mainwindow constructor.

    I put connect here now
    Qt Code:
    1. dialog =new Dialog();
    2. connect(ui->lineEdit, SIGNAL(textEdited(QString)), dialog, SLOT(seText(QString)));
    3. dialog->show();
    To copy to clipboard, switch view to plain text mode 

    its not showing any error, but the text is not getting displayed
    (I tried textChanged and textEdited ,both)
    Last edited by harvey_slash; 6th October 2013 at 19:07.

Similar Threads

  1. Replies: 3
    Last Post: 23rd June 2013, 16:01
  2. signal slot to mainwindow
    By giugio in forum Newbie
    Replies: 3
    Last Post: 9th November 2012, 20:05
  3. Replies: 2
    Last Post: 15th September 2010, 00:54
  4. Can't connect a signal to a slot
    By cejohnsonsr in forum Newbie
    Replies: 5
    Last Post: 26th August 2010, 20:42
  5. problem connect signal - slot
    By jaca in forum Newbie
    Replies: 13
    Last Post: 9th March 2010, 19:38

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.