How do I access the nifty new "...insert an #include for an undefined identifier" in QtCreator 2.5 Beta?
(from the announcement: http://labs.qt.nokia.com/2012/03/15/qt-creator-2-5-beta/)
It is probably staring me right in the face, but I don't see how to get to the "basic refactoring action" that I was so looking forward to. I started in the Help Index, for "#include." Next, searching the forums here didn't turn up anything newer than 2011 for "#include."
Would someone please steer me in the right direction?
Insert "QTableView v;", move the cursor on the type name QTableView, hit Alt-Enter.
Thanks for that.
I see there is a difference if you are working on a Qt QUI app (this Alt-Enter feature works) or a Qt Console app (the Alt-Enter pop-up menu doesn't appear).
Well, that could be because QTableView is in QtGui, which in turn needs QApplication and the relevant
QT += GUI
in the .pro file?
[quote author="Tobias Hunger" date="1332916986"]Insert "QTableView v;", move the cursor on the type name QTableView, hit Alt-Enter.[/quote]
What's the key combination for Mac version? And can this be added to the contextual menu?
Never mind. I figured it out. It's option-return.