Please note: This project and its site on Github are still under development.
Implementation of a token edit based on the Qt model/view framework.
- C++14 compliant compiler
- Qt version >= 5.9 (a lower version may work but was not tested)
The token edit is populated using the QAbstractItemModel interface. The widget reacts to changes from outside using the model’s signals.
The implementation utilises the application’s style wherever possible. Colors are taken from the widget’s palette.
MacOS
Windows
Gnome Adwaita
The token edit exposes its QLineEdit so that auto-completion and validation can easily be added as normally.
Drag and Drop is implemented using the QAbstractItemModel interface. However only move operations are currently supported.
The widget is properly scaled at different DPI scale factors.
When the widget is not in focus, tokens that do not fit into the widget without scrolling can be collapsed into one displaying the number of collapsed ones.
The token edit offers an intuitive way to delete items through both mouse and keyboard interaction.
- Only move operations are supported for drag and drop.
- The widget does not rescale when moving between windows with difference DPI scaling
- Add unit tests for the testable parts of the widget
- Implement a Qt Designer plugin