Skip to content

Commit

Permalink
Print main window central view in our debug viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Mar 20, 2024
1 parent 690040d commit db399b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qtwidgets/DebugWidgetViewer_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ class DebugWidgetViewer : public QWidget
<< "\n Window=" << widget->palette().color(QPalette::Window)
<< "\n Base=" << widget->palette().color(QPalette::Base)
<< "\n Button=" << widget->palette().color(QPalette::Button);

if (auto mw = qobject_cast<QMainWindow *>(widget)) {
qDebug() << " centralWidget=" << mw->centralWidget();
}

qDebug() << "END PRINT-------------------";
}

Expand Down

0 comments on commit db399b9

Please sign in to comment.