Results 1 to 2 of 2

Thread: Receiver

  1. #1
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Receiver

    hi. i have created a dialog, which i want to connect to actionAbout, which is in help->about (in menu) which is in main window. so, sender will be action, signal-triggered and what wil be the receiver? slot will be actionAbout, but what will be the receiver? regards

  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: Receiver

    See the examples:


    Create a custom slot in the main window class and show the dialog by hand. You don't want to waste memory by keeping such things as rarely shown about dialogs in the memory for the lifetime of the application..
    J-P Nurmi

Similar Threads

  1. QCoreApplication::postEvent: Unexpected null receiver
    By merlvingian in forum Qt Programming
    Replies: 6
    Last Post: 13th March 2007, 20:25
  2. postEvent() to a non-existing receiver
    By Artschi in forum Qt Programming
    Replies: 7
    Last Post: 1st June 2006, 14:44
  3. connect returns false
    By krivenok in forum Qt Programming
    Replies: 6
    Last Post: 21st February 2006, 20:01

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.