May 26, 2010

zbenjamin zbenjamin
Lab Rat
1 posts

QtCreator auto implement methods

 

Wouldn’t it be nice if Qt Creator could auto implement methods? Like you write the C++ header file and creator auto creates
the method stubs in the cpp file for you?

Also maybe right-klicking on a member var and selecting “Make Property” would be cool, or implement getters and setters
like eclipse does.

7 replies

May 26, 2010

Jorj Jorj
Lab Rat
97 posts

YES! more code automation features is a great idea!

May 30, 2010

SABROG SABROG
Lab Rat
82 posts

I like this idea, but need add choice where create implementation:

  • in .cpp (default)
  • in header, below definition
  • in header, but outside definition class (like in QWidget inline methods)

I agree about Q_PROPERTY, this will be helpfull just click on member of class and auto-create name, setter and getter with default implementation like this:

  1. Q_PROPERTY(int myVariable READ myVariable WRITE setMyVariable)
  2. ...
  3.     int myVariable() const {return m_myVariable;}
  4.     void setMyVariable(int myVariable) {m_myVariable = myVariable;}
  5. ...
  6. int m_myVariable;

 Signature 

QT - Apple QuickTime
Qt - Nokia’s Qt Development Frameworks
Apple is a competitor of Nokia, so QT != Qt

June 1, 2010

kkrzewniak kkrzewniak
Lab Rat
218 posts

This kind of functionality could prove to be grate help indeed.

 Signature 

Me, Grimlock, not “nice dino”. ME BASH BRAINS!

June 1, 2010

Alexandra Alexandra
Hobby Entomologist
607 posts

Can someone draft a real feature request on this topic or – even better! – file it directly into JIRA for the devs to see? Thanks! :)

 Signature 

*THE CAKE IS A LIE*
Web Community Manager - Qt Development Frameworks

June 1, 2010

SABROG SABROG
Lab Rat
82 posts

It’s here [bugreports.qt.nokia.com]

 Signature 

QT - Apple QuickTime
Qt - Nokia’s Qt Development Frameworks
Apple is a competitor of Nokia, so QT != Qt

June 2, 2010

Alexandra Alexandra
Hobby Entomologist
607 posts

Top! :)

 Signature 

*THE CAKE IS A LIE*
Web Community Manager - Qt Development Frameworks

June 2, 2010

ucomesdag ucomesdag
Lab Rat
243 posts

Cool would be a time safer!

 Signature 

Write “Qt”, not “QT” (QuickTime).

 
  ‹‹ QtCreator and multiple monitors      Qt Creator: Search and replace in whole project ››

You must log in to post a reply. Not a member yet? Register here!