[Qt-creator] Class boilerplate builder?

Jason H jhihn at gmx.com
Tue Dec 22 18:28:28 CET 2015

> > 
> > and have it all populated I'm thinking a grid or rows of:
> > Combo Text Combo(Syntax) Check   Check    ...  // UI type
> > Class Name MEMBER/READ   Write   Notify   ...  // What for
> > 
> > 
> > And that screen to the new Class wizard would save me a lot of time. 
> Hi,
> not integrated in a wizard, but if you write Q_PROPERTY you can
> 1. use the snippet to only provide the property type and name and get the rest filled out with defaults, and
> 2. use Refactor > "Generate missing Q_PROPERTY members” (or Alt+Return) on the Q_PROPERTY to automatically generate the getter, setter, signal, and member variable.
> Br, Eike

Having something where you can see it in its entirely, and hit "go" would be very satisfying. Once approved it would do all the members at once.

I'm already familiar with #1, but #2 is new to me. I'll give it a shot. Thanks.

More information about the Qt-creator mailing list