#qt #qtprogramming #qtplugin #qtwidget #customwidget #QDesignerCustomWidgetInterface #Q_PLUGIN_METADATA
In almost every application we need to load a list of data in to a list-like widget. Qt provide QListWidget for this purpose. With this widget you just able to load items and if you want to provide some other functionalities related to list such as filtering, add, delete and etc. then you need to add a bunch of widgets to your .ui file and also write some code to handle logics of those operations.
vListWidget will handle all these functionalities without any coding. You just need to add an instance of this widget on you .ui file and let this widget handle all other things. In addition to these features, vListWidget also accept QVariantList as it's datasource and it means you don't need to convert data into string in your codes.
I also create a plugin for this widget so you can easily add this widget in Qt Creator widgetbox and make use of it at design time.
Custom widgets is a way in Qt that we can add a new widget into our Qt creator standard widgetbox. Using this feature we need to create a new widget and then create a plugin for that. Using this plugin Qt creator will be able to load our widget at design time.
Most of developers just create new widgets and try to add those widgets at runtime to their UI. It's a little bit annoying and make other developers confused when they open .ui files.
source code also available on my github (vrfeducation)