Develop new Qt GUI controls
-
Hi everybody.
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.Thanx.
-
You can inherit from an existing control and overwrite methods to change/extend its functionality as needed.
-
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.
-
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
-
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