PDA

View Full Version : Hide application icon for QGuiApplication?



adutzu89
22nd August 2016, 19:38
Is there a way to hide application icons for Qt Quick built applications?
Example: not show icon in Ubuntu launcher when application is runing

anda_skoa
22nd August 2016, 19:58
Do you mean not showing an entry or showing an entry but without icon?

For the first you could check if providing certain window flags, e.g. Qt::Tool makes the system treat the window differently than how it usually treats application windows.
For the second you could try installing a 1x1 pixel icon with a transparent pixel.

Cheers,
_

adutzu89
23rd August 2016, 06:31
It was about the first.

Thanks, I'll try it after I will get home from work.

adutzu89
26th August 2016, 06:54
Hi anda_skoa, thank you for your reply though it didn't worked for me. I tried all the flags and none solved it.

I found a solution for Qt/C++ applications but couldn't find a way to implement it for my Qt Quick app.
Here is the solution: http://stackoverflow.com/questions/4055506/qt-hide-taskbar-item
Any suggestions?

anda_skoa
26th August 2016, 11:46
Well, that sets the Qt::Dialog no a subwindow.

You could try the same with setting that on the QQuickWindow you have and passing a similar dummy parent window to its constructor.

Cheers,
_