hi
how can i destroy/hide popup created using QMainWindow::createPopupMenu() within software?
regard
navid
Printable View
hi
how can i destroy/hide popup created using QMainWindow::createPopupMenu() within software?
regard
navid
subclass QMainWindow then reimplement createPopupMenu and return 0 or whatever you want.
thanks
it seems after
Code:
mvMenu = createPopupMenu (); mvMenu->exec();
application go freeze and wait to i do click anywhere to disappear popup (and then continue ).
i want to it be done using software. so i must do it {mvMenu =0;} in another thread?
you can't access to GUI from another thread directly. you should use signal/slots or custom events.
yes,
but this will be a complicated solution. i look for a simple one.