Commit Graph

2 Commits

Author SHA1 Message Date
Friedemann Kleint 211d578def File System Explorer example: Make QMimeDatabase a static variable
QMimeDatabase is potentially expensive to initialize, avoid
doing this repetitively.

Amends 213e932e13.

Task-number: QTBUG-108289
Change-Id: I66e5aeb22ffade9b86635e27b9d518c9e40aee4f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-22 08:16:55 +01:00
Dennis Oberst 213e932e13 Add File System Explorer example
This example shows the customization of Qt Quick Controls by
implementing a simple file system explorer. Using a C++ model, entries
are visualized in a TreeView, and text files can be read.

Fixes: QTBUG-108289
Change-Id: I966dcf65e40d3b727889dc14c65edd0ffcc1b878
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-14 13:32:13 +01:00