Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 830 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 830 Bytes

WidgetBrowser

Widget Browser is easy, simple, useful debugging support tool for Qt application.

Screen Shot

Features

  • Explore widgets hierarchy
  • Copy widget's class name
  • Take widget's snapshot

Install

Copy src/wb to your Qt project. Then just call wb::WbDialog::exec.

#include <wb/dialog.h>
⋮
wb::WbDialog dialog;
dialog.exec();

WbDialog gathers widgets information from QApplication automatically.

To launch Widget Browser with a hotkey, you can use WbOpenListener; an event filter to exec WbDialog.

#include <QApplication>
#include <QKeySequence>
#include <wb/listener.h>
⋮
WbOpenListener listener;
listener.setKeySequenceToOpen(QKeySequence("Meta+F2"));
qApp->installEventfilter(&listener);