Results 1 to 2 of 2

Thread: qt 4.3.4: bind "connect" slot action at runtime

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qt 4.3.4: bind "connect" slot action at runtime

    Hello,

    how can I connect

    Qt Code:
    1. connect(exitAct, SIGNAL(triggered()), qApp, SLOT(closeAllWindows()));
    To copy to clipboard, switch view to plain text mode 

    at runtime (closeAllWindows) ?

    thanks for helping

    Jens



    Qt Code:
    1. QObject::connect(
    2. kawin[win]->btn[kawin[win]->PushButtonCount-1], // the button
    3. SIGNAL(clicked()), // the signal
    4. kawin[win], // the window/widget
    5. SIGNAL(kawin[win]->btn[kawin[win]->PushButtonCount-1]->buttonClicked())
    6. );
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 25th August 2008 at 13:52. Reason: missing [code] tags

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.