Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How do I access the nifty new "...insert an #include for an undefined identifier" in QtCreator 2.5 Beta?
QtWS25 Last Chance

How do I access the nifty new "...insert an #include for an undefined identifier" in QtCreator 2.5 Beta?

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 4 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    solareclectic
    wrote on 28 Mar 2012, 01:23 last edited by
    #1

    (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

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 28 Mar 2012, 06:43 last edited by
      #2

      Insert "QTableView v;", move the cursor on the type name QTableView, hit Alt-Enter.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        solareclectic
        wrote on 28 Mar 2012, 11:45 last edited by
        #3

        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).

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on 29 Mar 2012, 09:22 last edited by
          #4

          Well, that could be because QTableView is in QtGui, which in turn needs QApplication and the relevant
          @
          QT += GUI
          @
          in the .pro file?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            stephenju
            wrote on 4 Apr 2012, 15:57 last edited by
            #5

            [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?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stephenju
              wrote on 4 Apr 2012, 16:01 last edited by
              #6

              Never mind. I figured it out. It's option-return.

              1 Reply Last reply
              0

              2/6

              28 Mar 2012, 06:43

              • Login

              • Login or register to search.
              2 out of 6
              • First post
                2/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved