Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Develop new Qt GUI controls
qtnamco last edited by
i'm new in qt,
and i think this very fantastic.
Thanks for qt developers.
My question is there some qt controls like QButton, QLabel, etc...
Can i develop new qt GUI control, for example QAccordion control for example.
how to do it, and from where can i read and learn it.
MuldeR last edited by
You can inherit from an existing control and overwrite methods to change/extend its functionality as needed.
vezprog last edited by
Subclass an object and make it your own. So create a class and inherit the object you want to customize, and overwrite the meathos and ect. ect. like MuldeR said.
giesbert last edited by
If there is no control you want to extend, you have to subclass with QWidget.
you can have a look at Qt examples, e.g. "the analog clock":http://qt-project.org/doc/qt-4.8/widgets-analogclock.html
veeraps last edited by
This link may be useful as well - "Creating Custom Widgets for Qt Designer":http://qt-project.org/doc/qt-4.8/designer-creating-custom-widgets.html