Hi,
My aim is to create widgets asynchronously.
I tried using QFutureWatcher for doing this,but its complaining widgets should be created in same gui thread.Is there any way to do this
Hi,
My aim is to create widgets asynchronously.
I tried using QFutureWatcher for doing this,but its complaining widgets should be created in same gui thread.Is there any way to do this
you could emit a signal with required parameters from your worker thread and write a slot in the gui thread which actually creates the widgets.
Let your work talk for you
HI,
I was getting this kind of warnings and errors
QPixmap: It is not safe to use pixmaps outside the GUI thread
ASSERT failure in QWidget: "Widgets must be created in the GUI thread.", file kernel\qwidget.cpp, line 1050
yes,
I believe you are creating the widgets in the context of your worker thread. that is not allowed in Qt. All UI elements should be created only within the main GUI thread. so make such changes accordingly. like suggested previously, emit a signal from the worker thread and create the GUI elements in the main thread slot.
cheers!
Let your work talk for you
Bookmarks