Results 1 to 2 of 2

Thread: signal and slots problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: signal and slots problem

    You need somehow to tell the system that the input is done.
    In your example, you say you want to enter '1'.
    You need to do something that tells the code, your input is finished, and that you don't want to type another '1' - maybe your want to enter '11'.
    So when you trigger that "end of input" event, you can connect a slot to it, and there put your logic.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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

    zakachoka (9th May 2017)

Similar Threads

  1. Problem with qtconcurrent and signal & slots
    By angelito870523 in forum General Programming
    Replies: 6
    Last Post: 22nd December 2012, 12:57
  2. Problem with Signal and Slots and QThread
    By Informatix in forum Newbie
    Replies: 2
    Last Post: 7th June 2010, 14:21
  3. Queuing problem with signal and slots
    By montylee in forum Qt Programming
    Replies: 4
    Last Post: 20th November 2009, 06:11
  4. Signal-slots connection problem.
    By impeteperry in forum Qt Tools
    Replies: 26
    Last Post: 23rd January 2007, 14:33
  5. Problem with Signal and Slots
    By Kapil in forum Installation and Deployment
    Replies: 2
    Last Post: 10th February 2006, 08:51

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