Some common code what I use across my Qt based projects
Format duration numbers to "01:56:42.112" or "1 day 12 hours 3 minutes" strings.
Wanna select an enum item from a QComboBox? QMetaEnumComboBox to the rescue!
A comfortable constructor is added to being able to trim prefix an trailing strings easily.
This template provides similar functionality to the QMetaEnumComboBox just with QMenu: it populates the menu with checkable QActions which acts as radio buttons (only one could be selected).
Widgets which could be added as a QAction to menus
A template class for creating widgets having QHeaderView (QTableView, QTreeView) which has:
- Saveable/restorable:
- Column widths
- Column visibility
- Column order (drag 'n drop)