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. How to enable the qt.scenegraph.general logging category?
Forum Updated to NodeBB v4.3 + New Features

How to enable the qt.scenegraph.general logging category?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 3.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.
  • vikramgV Offline
    vikramgV Offline
    vikramg
    wrote on last edited by
    #1

    From http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html:
    "To verify which render loop is in use, enable the qt.scenegraph.general logging category."

    How does one do this, though? If I add

    Q_LOGGING_CATEGORY(QSG_LOG_INFO_GENERAL, "qt.scenegraph.general")
    

    to main.cpp, it does nothing. I tried setting QSG_INFO to 1 and that did print out a bunch of log info. But I'm curious as to how to get this via the logging category.

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

      Hi,

      Put

      QLoggingCategory::setFilterRules("qt.scenegraph.general=true");
      

      just after the QApplication creation.

      Hope it helps

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

      1 Reply Last reply
      0
      • vikramgV Offline
        vikramgV Offline
        vikramg
        wrote on last edited by
        #3

        Yup, that works. Thanks!

        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