Qt-interest Archive, April 2007
Making a window disappear :o (without magical powers)
Message 1 in thread
Hi,
I would like my app to disappear from the "window list" at the bottom of the
screen (I believe the right name is "the taskbar") when I minimize the
window. I already set up a systray icon on minimize event (so that I can
control my app only from the systray!).
But I can't find a way to do that, I tried the QWidgets method hide() but it
doesn't work and I can't find any other clue on the method to use...
Could someone please help me ? :)
--
[ signature omitted ]
Message 2 in thread
Rémy Bardou wrote:
> I would like my app to disappear from the "window list" at the bottom of
> the screen (I believe the right name is "the taskbar") when I minimize
> the window. I already set up a systray icon on minimize event (so that I
> can control my app only from the systray!).
I think you need to change it to tool-window, at least on Windows.
--
[ signature omitted ]
Message 3 in thread
Rémy Bardou wrote:
> Hi,
>
> I would like my app to disappear from the "window list" at the bottom of
> the screen (I believe the right name is "the taskbar") when I minimize
> the window. I already set up a systray icon on minimize event (so that I
> can control my app only from the systray!).
> But I can't find a way to do that, I tried the QWidgets method hide()
> but it doesn't work and I can't find any other clue on the method to use...
>
Have you had a look at the QTDIR/examples/desktop/systray/ application
before asking your question? It seems to me that it has this "feature". ;)
--
[ signature omitted ]
Message 4 in thread
Yes, of course I looked at it :D
In fact, that's how I learned how to create a systray icon. But strangely,
this part didn't work for me :(
(I just checked at the example and it seems they use the hide function too :
http://doc.trolltech.com/4.2/desktop-systray-window-cpp.html)
:)
"Ferenc Stelcz" <stelcz@xxxxxxxxxxxx> a écrit dans le message de
news:460FF9F1.701@xxxxxxxxxxxxxxx
Rémy Bardou wrote:
> Hi,
>
> I would like my app to disappear from the "window list" at the bottom of
> the screen (I believe the right name is "the taskbar") when I minimize the
> window. I already set up a systray icon on minimize event (so that I can
> control my app only from the systray!).
> But I can't find a way to do that, I tried the QWidgets method hide() but
> it doesn't work and I can't find any other clue on the method to use...
>
Have you had a look at the QTDIR/examples/desktop/systray/ application
before asking your question? It seems to me that it has this "feature". ;)
--
[ signature omitted ]
Message 5 in thread
Rémy Bardou schrieb:
> Yes, of course I looked at it :D
> In fact, that's how I learned how to create a systray icon. But
> strangely, this part didn't work for me :(
> (I just checked at the example and it seems they use the hide function
> too : http://doc.trolltech.com/4.2/desktop-systray-window-cpp.html)
Did you notice that the Window class in said example is derived from
QWidget, not QDialog or QMainWindow? Perhaps that's the spell you need,
or setting appropriate window flags; see <doc/html/qt.html#WindowType-enum>.
Martin
--
[ signature omitted ]