QLoggingCategory::setFilterRules() not working for widget geometry warnings?

  • I am porting my application from Qt 5.2.1 to Qt 5.5.1 and suddenly some qWarning() messages are getting thrown.

    setGeometryDp: Unable to set geometry 56x56+363+124 on QWidgetWindow/'QLabelClassWindow'. Resulting geometry:  116x56+363+124 (frame: 8, 30, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 0x0, maximum size: 16777215x16777215).

    I do not know why they are getting thrown, but just would like them to be filtered away from logging as my application is working fine.
    I found out about QLoggingCategory and used it as suggested in this blog.
    The ssl warnings are successfully suppressed but not the setGeometry ones, with the following code.


    Can you suggest how I can eliminate these warnings?

  • Lifetime Qt Champion


    You can't filter that one currently, it's a qWarning.

  • @SGaist Thank you for letting me know that.

Log in to reply

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