Results 1 to 2 of 2

Thread: QTApplication

  1. #1
    Join Date
    Oct 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default QTApplication

    How can I generate signals after clicking the button for 10times ?

  2. #2
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTApplication

    Connect the button's clicked() signal to a slot. In the slot, increment a counter. When the counter reaches 10, do whatever you want, such as emitting a signal.

  3. The following user says thank you to yeye_olive for this useful post:

    Hossein (21st October 2015)

Similar Threads

  1. Replies: 4
    Last Post: 23rd June 2011, 10:50
  2. Replies: 1
    Last Post: 5th April 2011, 23:23
  3. Adding nonQt classes to QtApplication
    By codebehind in forum Newbie
    Replies: 11
    Last Post: 23rd April 2007, 21:08

Tags for this Thread

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.