Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLoggingCategory::setFilterRules() not working for widget geometry warnings?
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CAD_codingC Offline
    CAD_codingC Offline
    CAD_coding
    wrote on last edited by
    #1

    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.

    QLoggingCategory::setFilterRules("qt.network.ssl.warning=false\n""qt.widgets.kernel.warning=false");
    

    Can you suggest how I can eliminate these warnings?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      CAD_codingC 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

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

        CAD_codingC Offline
        CAD_codingC Offline
        CAD_coding
        wrote on last edited by
        #3

        @SGaist Thank you for letting me know that.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved