Results 1 to 5 of 5

Thread: Connecting a Button Click signal to member function

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Connecting a Button Click signal to member function

    Don't forget that you can always call a slot as a normal function call. Defining a function as a slot just registers it in the meta object data so you can connect to it.

  2. #2
    Join Date
    Jul 2009
    Posts
    7
    Thanks
    1
    Platforms
    Windows

    Default Re: Connecting a Button Click signal to member function

    Thank you.
    I understood what you all said but I was asking to clarify it.
    Else there is no harm for me to put foo() (my valuable fn :-) ) in private slots: section.

Similar Threads

  1. button click in webview
    By mind_freak in forum Qt Programming
    Replies: 1
    Last Post: 29th September 2009, 13:48
  2. How to call a function when i clic a button?
    By trend900 in forum Newbie
    Replies: 2
    Last Post: 22nd January 2009, 16:40
  3. how to know which button emit the signal?
    By coder1985 in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2008, 14:26
  4. Connecting signal to button
    By steg90 in forum Qt Programming
    Replies: 8
    Last Post: 13th December 2007, 10:37
  5. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40

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.