System tray icon disappears after a QInputDialog::getText
-
Hi and welcome to devnet,
You need to add which Qt/OS combo you are currently using
-
thank you,
5.2.1 and Windows 8, but I want it to work also on Win 7 (+ Vista and Xp if possible)
-
32 bits
-
Can you first update to 5.3.1 ?
-
is there a way to update or shall I install the entire 5.3.1, because when I select C:/Qt for instalation, it says to change folder because an instalation already exist (the 5.2.1)
-
- -> this instalation : Qt Online Installer for Windows (14 MB)
-
ok i'm installing the 5.3.1
-
same problem
-
the icon disapear after the QInputDialog::getText action
-
Ok, can you reproduce this with a minimal example ?
-
good idea, i'll try it
-
it also does not work with a minimal exemple :
"icon_hidden":http://www.qtfr.org/img/members/146981/icon_hidden.zip
-
in main :
if i replace w.hide(); by w.show(); the problem is fixed BUT a window is showed, even with a resize(0,0); and I don't want any window, just a system tray icon, so i must have w.hide(); in my code
how shall I do? -
You are missing
@a.setQuitOnLastWindowClosed(false);@
-
great !!!
thank u for your help. -
You welcome !
Now that you have your application working, please update the thread title prepending [solved] so that other forum users may know a solution has been found :)