Results 1 to 14 of 14

Thread: Beginner problem with connect

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Beginner problem with connect

    Use it this way

    Qt Code:
    1. //program.cpp
    2. program::program(QWidget *parent) :
    3. QMainWindow(parent),
    4. ui(new Ui::program)
    5. {
    6. ui->setupUi(this);
    7. wnd1 * w1 = new wnd1(this);
    8. QPushButton *b = ui->pushButton;
    9.  
    10. connect(b, SIGNAL(clicked()), w1, SLOT(test()));
    11. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by Santosh Reddy; 13th July 2011 at 20:35.

  2. The following user says thank you to Santosh Reddy for this useful post:

    lucastonon (14th July 2011)

Similar Threads

  1. Problem with connect
    By eekhoorn12 in forum Newbie
    Replies: 3
    Last Post: 21st December 2010, 20:48
  2. connect() problem
    By harmodrew in forum Newbie
    Replies: 14
    Last Post: 5th August 2010, 17:45
  3. Connect Problem
    By nrabara in forum Newbie
    Replies: 3
    Last Post: 4th May 2009, 12:19
  4. Problem with connect()
    By mrnor3 in forum Qt Programming
    Replies: 3
    Last Post: 23rd July 2008, 14:05
  5. Qfiledialog Problem - (Beginner)
    By kingslee in forum Qt Tools
    Replies: 3
    Last Post: 11th October 2006, 23:00

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.