#include <QObject>
#include <functional>
#include <future>
#include <iostream>
Go to the source code of this file.
Namespaces | |
qt | |
qt::core | |
qt::core::world | |
Functions | |
void | qt::core::world::build_and_run (int argc, char **argv, const std::function< void()> &ready) |
Sets up the Qt core world and executes its event loop. Blocks until destroy() is called. More... | |
void | qt::core::world::destroy () |
Destroys the Qt core world and quits its event loop. More... | |
std::future< void > | qt::core::world::enter_with_task (const std::function< void()> &task) |
Enters the Qt core world and schedules the given task for execution. More... | |
template<typename T > | |
std::future< T > | qt::core::world::enter_with_task_and_expect_result (const std::function< T()> &task) |
Enters the Qt core world and schedules the given task for execution. More... | |