Results 1 to 5 of 5

Thread: Common slot on some widgets [Qt3]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2006
    Posts
    48
    Thanks
    5
    Thanked 4 Times in 3 Posts

    Default Re: Common slot on some widgets [Qt3]

    u have connectio (blabla, SIGNAL(clicked()),SLOT(slot()))

    void ClassName::slot()
    {
    QToolButton* tb = qobject_cast<QToolButton*>(sender());
    if (tb)
    {
    do something with current toolbutton
    }
    }

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

    Opilki_Inside (27th March 2006)

Similar Threads

  1. How to create Custom Slot upon widgets
    By ashukla in forum Qt Programming
    Replies: 6
    Last Post: 8th September 2007, 14:07

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.