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. #3
    Join Date
    Oct 2009
    Posts
    30
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    4

    Default Re: How can I know which button click.

    @kwisp thanks. I looked sender but i didn t find properties. I want to ObjectName and I try

    sender()->ObjectName() but it's null.

    Edit: I solve this problem I write

    button1->setObjectName("button1");

    and running now.

    I have an array and I want to create buttons for each member of this array. can you help me?
    Last edited by electronicboy; 3rd October 2009 at 18:34.

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
  •  
Qt is a trademark of The Qt Company.