Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to hide mac dock icon for QApplication?



  • Hi,
    I have a console app that initializes QApplication that needs the QPainter to work. When run it, there is a icon shows in the mac dock bar. Does anyone know how to get rid of it? I just want the console app to be run in background.

    I tried to use QCoreApplication, it has no icon there, but QPainter will not work without QApplication.

    Best Regards


Log in to reply