I have a project in QT Creator and I want that the header files be included automatically when using a new object. It's like in Eclipse : Add needed headers when invoking a new object by using Ctrl+Alt+Space : all needed headers will be included.
Here is an example
#include <QApplication>
#include <QPushButton> /* Header that i want to include automatically */
int main( int argc, char *argv[ ] )
{
QApplication app( argc, argv) ;
QWidget fenetre;
/*Add needed headers when invoking a new object like ctrl+alt+space in eclipse*/
QPushButton bouton( "Bonjour", &fenetre) ;
bouton. move(70,60);
fenetre. show( ) ;
return app. exec( ) ;
}
Any suggestions on how to do this in QT Creator ? Thanks