Results 1 to 2 of 2

Thread: Wait for a signal

  1. #1
    Join Date
    Sep 2007
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Wait for a signal

    I have run into a situation that in order to continue some sort of computations/operations, i have to ask a question to the user. However, i cannot display a modal window (the user should be able to inspect the the main widget before answering my question).
    So, i have to show a modeless dialog, but i want to stop my computations until the user answers the question.

    Is there a way to wait for the finished signal of the displayed dialog for continuing???
    I don't want to break my computations in small parts and user signal/connection mechanism...

    Regards,
    Panos

  2. #2
    Join Date
    May 2008
    Location
    London, UK
    Posts
    8
    Thanked 6 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Wait for a signal

    You could use libqxt, and the signal waiter class:

    http://docs.libqxt.org/classQxtSignalWaiter.html


    ... or you could roll your own, but why reinvent the wheel?

Similar Threads

  1. Possible signal mapper problem
    By MarkoSan in forum Qt Programming
    Replies: 13
    Last Post: 25th January 2008, 13:11
  2. how to know which button emit the signal?
    By coder1985 in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2008, 14:26
  3. Replies: 2
    Last Post: 17th May 2006, 21:01
  4. no such signal QListBox::currentChanged()
    By jopie bakker in forum Newbie
    Replies: 2
    Last Post: 2nd March 2006, 15:17

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.