Results 1 to 20 of 23

Thread: send signal from QCombobox

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: send signal from QCombobox

    Qt Code:
    1. // in header of your form
    2. protected:
    3. bool eventFilter( QObject *o, QEvent *e );
    4.  
    5. // in constructor your form
    6. installEventFilter(yourCmb->listBox());
    7.  
    8. // then
    9. bool yourForm::eventFilter( QObject *o, QEvent *e )
    10. {
    11. if ( e->type() == QEvent::Show )
    12. {
    13. yourMethod();
    14. return TRUE; // eat event
    15. } else
    16. {
    17. // standard event processing
    18. return FALSE;
    19. }
    20. }
    To copy to clipboard, switch view to plain text mode 
    a life without programming is like an empty bottle

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

    raphaelf (28th February 2006)

Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 07:04
  3. QComboBox activated signal: bad int value?
    By rfdutt in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2008, 23:29
  4. Can you send a signal to a thread?
    By Dumbledore in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2007, 20:31
  5. Manually send signal to slot
    By donmorr in forum Qt Programming
    Replies: 1
    Last Post: 29th May 2006, 15:03

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.