Results 1 to 5 of 5

Thread: Hide application icon for QGuiApplication?

  1. #1
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Hide application icon for QGuiApplication?

    Is there a way to hide application icons for Qt Quick built applications?
    Example: not show icon in Ubuntu launcher when application is runing

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Hide application icon for QGuiApplication?

    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,
    _

  3. #3
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Hide application icon for QGuiApplication?

    It was about the first.

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

  4. #4
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Hide application icon for QGuiApplication?

    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/4...e-taskbar-item
    Any suggestions?

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Hide application icon for QGuiApplication?

    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,
    _

Similar Threads

  1. Hide drag and drop icon
    By Alundra in forum Qt Programming
    Replies: 2
    Last Post: 17th June 2014, 03:47
  2. Replies: 4
    Last Post: 27th May 2014, 21:24
  3. Replies: 5
    Last Post: 13th November 2011, 20:49
  4. How to hide an Icon?
    By Alex Snet in forum Qt Programming
    Replies: 0
    Last Post: 28th May 2009, 10:32
  5. Hide QMainWindow without removing taskbar icon?
    By bigchiller in forum Qt Programming
    Replies: 5
    Last Post: 15th March 2009, 22:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.