Namespaces | |
| detail | |
Functions | |
| void | 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 | destroy () |
| Destroys the Qt core world and quits its event loop. More... | |
| std::future< void > | 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 > | enter_with_task_and_expect_result (const std::function< T()> &task) |
| Enters the Qt core world and schedules the given task for execution. More... | |
| 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.
| argc | Number of arguments in argv. |
| argv | Array of command-line arguments. |
| ready | Functor be called when the world has been setup and is about to be executed. |
| std::runtime_error | in case of errors. |
Definition at line 132 of file qtbridge.cpp.
References qt::core::world::detail::coreApplicationInstance(), qt::core::world::detail::createCoreApplicationInstanceWithArgs(), qt::core::world::detail::destroyCoreApplicationInstace(), and qt::core::world::detail::task_handler().
Here is the call graph for this function:| void qt::core::world::destroy | ( | ) |
Destroys the Qt core world and quits its event loop.
Definition at line 154 of file qtbridge.cpp.
References enter_with_task().
Here is the call graph for this function:| 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.
| task | The task to be executed in the Qt core world. |
Definition at line 163 of file qtbridge.cpp.
References qt::core::world::detail::TaskEvent::get_future(), and qt::core::world::detail::task_handler().
Referenced by destroy(), and enter_with_task_and_expect_result().
Here is the call graph for this function:
|
inline |
Enters the Qt core world and schedules the given task for execution.
| task | The task to be executed in the Qt core world. |
Definition at line 63 of file qtbridge.h.
References enter_with_task().
Here is the call graph for this function: