namco
namco

Reputation: 6338

How to develop new Qt GUI controls?

There are some Qt controls like QButton, QLabel etc. Can I develop new Qt GUI control, for example QAccordion or QRibbon control?

How is this done, and from where can I read and learn about it?

Upvotes: 1

Views: 1815

Answers (3)

Jeka
Jeka

Reputation: 1374

And here you can see how-to use it qtdesigner http://doc.qt.io/qt-4.8/designer-creating-custom-widgets.html

Upvotes: 0

SigTerm
SigTerm

Reputation: 26409

Can i develop new

Yes.

how to develop new own qt gui controls?

where can i read and learn it?

You should read qt documentation. Documentation is quite good, so there's no excuse for not reading it.

Analog clock example shows how to create custom widget.

Upvotes: 1

Anthony
Anthony

Reputation: 8788

You can create your own widgets by subclassing QWidget or existing QWidget subclasses, (e.g., QFrame)

Honestly, at this stage, though, I recommend familiarizing yourself with how Qt works before trying to create entirely new widgets. There are several books about Qt, my favorite of which is this one, which, among other things, shows you how to create your own widgets.

Upvotes: 4

Related Questions