summaryrefslogtreecommitdiffstats
path: root/examples/demos/documentviewer/hoverwatcher.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add Json, text and pdf document viewer demoAxel Spoerl2023-03-101-0/+212
Add a demo with a combined viewer for Json, pdf and text documents. The example demonstrates how to create an application, utilizing a main window with static and dynamic toolbars, menus and actions. Type specific viewers inherit from an abstract viewer class. The Json viewer implements an abstract tree model for QJsonDocument. The example demonstrates a few useful application features, implemented with QtWidgets and QSettings, to (re)store properties: - Detecting file content types with QMimeDatabase - Changing and restoring override cursor when hovering over a widget. - Basic printing support. Change-Id: Ie411669cfdbc41ac399cd1aed87e60722195c42c Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 9bba48e1cad2f9c59d3407a45686e99b4cee9159) Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>