How do I access the nifty new "...insert an #include for an undefined identifier" in QtCreator 2.5 Beta?
-
wrote on 28 Mar 2012, 01:23 last edited by
(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?
Thanks -
wrote on 28 Mar 2012, 06:43 last edited by
Insert "QTableView v;", move the cursor on the type name QTableView, hit Alt-Enter.
-
wrote on 28 Mar 2012, 11:45 last edited by
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).
-
wrote on 29 Mar 2012, 09:22 last edited by
Well, that could be because QTableView is in QtGui, which in turn needs QApplication and the relevant
@
QT += GUI
@
in the .pro file? -
wrote on 4 Apr 2012, 15:57 last edited by
[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? -
wrote on 4 Apr 2012, 16:01 last edited by
Never mind. I figured it out. It's option-return.
2/6