Graphics Scene Inspector

Overview

The graphcis scene inspector allows you to inspect the structure of a QGraphicsScene and to view and edit the properties of the QGraphicsItem instances contained in it. It provides:

  • Inspecting the graphics item hierarchy.
  • Remote view of the rendered content with diagnostic overlays.
  • Inspecting individual QPainter commands per graphics item.

If your target has multiple QGraphicsScene instances, the combo box at the top can be used to switch between them.

Item Tree

The item tree is shown on the top left, and contains the visual hierarchy of QGraphicsItem instances in the currently selected graphics scene. The right side contains the same property view for the selected item.

You can navigate to the object inspector (and other applicable tools) using the context menu on the item tree. This feature is only available for QGraphicsObject sub-classes though.

Remote View

The remote view is shown on the left lower part of the graphics view inspector. Besides giving you a zoomable view of the rendered content, it provides a number of additional features:

  • Element picking.
  • Diagnostic overlays with bounding shape, bounding box and tranformation origin information.

Paint Analyzer

When selecting a graphics item in the item tree, the paint analyzer tab is activated in the property view on the right.

The paint analyzer allows you to inspect every single QPainter command that is executed, and look at the visual result after each step.

© 2016 Klarälvdalens Datakonsult AB (KDAB). Documentation contributions included herein are the copyrights of their respective owners.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.