qt - prevent QApplication::exec from blocking main thread -


i have visual c++ program creates multiple gui on main thread. want show qwidget alongside other gui. currently, if call qapplication.exec(), blocks main thread until close window. there way prevent exec function blocking main thread or use qwidget without calling exec?

the method not blocking main thread, on contrary: allows event loop execute, ensuring ui remains responsive.

while widget shown, other gui responsive, qt's event loop interoperates native message queue.

if want happen when dialog widget gets closed, connect relevant code e.g. dialog's accepted() signal.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -