Здравствуйте, гость ( Вход | Регистрация )
| Гость_Гость_* |
9.10.2007, 19:31
Сообщение
#1
|
|
Гости |
Есть ли аналог WaitForSingleObject в QT. Сейчас пока обхожусь QEvent.
|
|
|
|
![]() |
|
ViGOur |
9.10.2007, 19:34
Сообщение
#2
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: 40
|
смотри waitForFinished:
Цитата bool QProcess::waitForFinished ( int msecs = 30000 )
Blocks until the process has finished and the finished() signal has been emitted, or until msecs milliseconds have passed. Returns true if the process finished; otherwise returns false (if the operation timed out or if an error occurred). This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread. Warning: Calling this function from the main (GUI) thread might cause your user interface to freeze. If msecs is -1, this function will not time out. bool QThread::wait ( unsigned long time = ULONG_MAX ) Blocks the thread until either of these conditions is met: The thread associated with this QThread object has finished execution (i.e. when it returns from run()). This function will return true if the thread has finished. It also returns true if the thread has not been started yet. time milliseconds has elapsed. If time is ULONG_MAX (the default), then the wait will never timeout (the thread must return from run()). This function will return false if the wait timed out. This provides similar functionality to the POSIX pthread_join() function. |
|
|
|
Гость WaitForSingleObject в QT. 9.10.2007, 19:31
Гость еше вопрос
Как минимализированное приложение (в та... 9.10.2007, 19:36
ViGOur В принципе функции в Qt похожи названиями с виндов... 9.10.2007, 19:38
kuler для QEvent что является аналогом WaitForSingleObje... 20.3.2009, 10:59
SABROG WaitForSingleObject в виндовом API юзается для:
... 20.3.2009, 11:59![]() ![]() ![]() |
|
Текстовая версия | Сейчас: 11.12.2025, 16:34 |