how to disable warrning message comes from the OS system



  • when I debug sometimes a message comes in the application output section at the bottom of the qt creator some of this messages like this

    QImage::pixel: coordinate (386,8648) out of range
    or  from QFileDialog :
    selectNameFilter: Invalid parameter 'Photo (*.jpg *.jpeg *.bmp *.png)' not found in 'Photo (*.jpg *.jpeg *.png *.bmp);
    

    how to not see this or disable this messages from the output in debugging mode
    what I tried is to put this code in the .pro file and not work

    DEFINES     += QT_NO_DEBUG_OUTPUT QT_NO_WARNING_OUTPUT
    CONFIG      += warn_off release qt app_bundle
    

    Thanks in advance


  • Lifetime Qt Champion

    Hi,

    The first one is not a debug message but a warning so you should fix that one.

    The second is not from Qt but from the OS so again, you should fix it.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.