Post

Custom Widgets in Qt

In this, I’ll be writing about the things I’ve learned during implementing the UI of MDSAGV with the help of Custom widgets.

  • https://doc.qt.io/qt-6/designer-creating-custom-widgets.html
  • For distinguishing between Qt plugin and Widget: this
  • This one is useful for general Qt, providing all Macros used in custom classes. This
  • an example of custom plugin
  • qt_add_plugin
  • Did you know you can start Qt-Creator from Command Line. You can use this to set custom plugin paths for qt designer plugin in qt creator.

    1
    
      \path\to\qt\installation_Directory\Tools\QtCreator\bin\qtcreator.exe -h
    
  • For adding the ui file to a class and .h file in the project directory, You kneed to promote the plugin/custom widget in QT-Designer to that class

Useful Videos:

Useful Tricks

Recipe for making custom widgets:

This post is licensed under CC BY 4.0 by the author.