[Qt-creator] Class boilerplate builder?

Curtis Mitch mitch.curtis at theqtcompany.com
Wed Dec 23 10:03:36 CET 2015


Nice! Thanks!
________________________________________
From: Qt-creator <qt-creator-bounces at qt-project.org> on behalf of Ziller Eike <Eike.Ziller at theqtcompany.com>
Sent: Monday, 21 December 2015 07:41
To: Jason H
Cc: qt-creator
Subject: Re: [Qt-creator] Class boilerplate builder?

[snip]

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

--
Eike Ziller, Senior Software Engineer | The Qt Company
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator



More information about the Qt-creator mailing list