Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreicherniaev/lesson-048-qthread-with-movetothread
https://evileg.com/ru/post/152/#comment-2663
https://github.com/andreicherniaev/lesson-048-qthread-with-movetothread
Last synced: about 1 month ago
JSON representation
https://evileg.com/ru/post/152/#comment-2663
- Host: GitHub
- URL: https://github.com/andreicherniaev/lesson-048-qthread-with-movetothread
- Owner: AndreiCherniaev
- License: apache-2.0
- Created: 2023-02-28T09:53:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-24T12:46:46.000Z (over 1 year ago)
- Last Synced: 2023-08-24T14:46:44.783Z (over 1 year ago)
- Language: C++
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QThread - работа с потоками с помощью moveToThread
Это моя несколько модифицированная версия кода согласно ["Qt/C++ - Урок 048. QThread - работа с потоками с помощью moveToThread"](https://evileg.com/ru/post/152/#comment-2663).
1) Добавил паузу QThread::sleep(1); в нити, а то уж слишком быстро выводили
2) Заменил &QThread::terminate на &QThread::quit
и тогда перестал сыпаться страшный варнинг
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.3) Аналогичный консольный проект https://github.com/AndreiCherniaev/QThread-with-moveToThread_console
3) Также материал на тему нитей Qt https://habr.com/ru/post/485324/
4) see another project https://github.com/hunghtbk/Watcher_Application