Results 1 to 11 of 11

Thread: How can I know which button click.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    30
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How can I know which button click.

    sory for my bad english. I have two buttons. And two buttons are connecting to slot for click signal. But slots are equal.

    An Example;

    Qt Code:
    1. connect(bottun1,SIGNAL(clicked()),this,SLOT(MyClickEvent()));
    2. connect(button2,SIGNAL(clicked()),this,SLOT(MyClickEvent()));
    To copy to clipboard, switch view to plain text mode 

    How can I know which button click?
    Last edited by electronicboy; 3rd October 2009 at 14:10.

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 open any file on button click???
    By r3aktor in forum Newbie
    Replies: 5
    Last Post: 8th July 2009, 08:54
  3. QMdiSubWindow not delet when click the X button.
    By SamSong in forum Qt Programming
    Replies: 1
    Last Post: 20th May 2009, 08:21
  4. QPaintEvent on button click?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2007, 08:44
  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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.