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. Qt Creator: Search and replace in whole project
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: Search and replace in whole project

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 7 Posters 21.4k Views 1 Watching
  • 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.
  • U Offline
    U Offline
    ucomesdag
    wrote on last edited by
    #1

    Would be nice to have the ability to do a search and replace in whole project.

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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mkfnx
      wrote on last edited by
      #2

      I think that the dialog that shows up when you press Ctrl+Shift+F it's something similar to what you're looking for.

      I'm using Qt Creator 1.3.1 and I don't know if its available in older versions.

      Edit: Now I've checked the dialog I told you and I have seen that it lacks of replacement feature :(
      But then I remembered other shortcut that I think that it does what you want: Set the cursor over the text that you want to replace in the whole project and then press Ctrl+Shift+R , then in the Search Results panel it will appear a tree of the files and lines where the text that you searched appears and a line edit where you can write the new text.

      1 Reply Last reply
      1
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

        mkfnx Feature you've told about is refactor feature, not simple search&replace;. For example, you can change class name by this feature easily, but can't change email in all license headers.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jorj
          wrote on last edited by
          #4

          I think this feature is on the Qt Creator todo list... But not sure if they're in 2.0...

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thorbjorn
            wrote on last edited by
            #5

            This feature has been added for Qt Creator 2.0. Don't wait for the final release, try a "nightly build":ftp://ftp.qt.nokia.com/qtcreator/snapshots/ or the "beta release":http://qt.nokia.com/developer/qt-qtcreator-prerelease#download! :-)

            (nightlies are more recent and should generally be more stable at this point)

            1 Reply Last reply
            0
            • Y Offline
              Y Offline
              Yash
              wrote on last edited by
              #6

              Great :)

              http://kineticwing.com : Web IDE, QSS Editor
              http://speedovation.com : Development Lab

              1 Reply Last reply
              0
              • ? This user is from outside of this forum
                ? This user is from outside of this forum
                Guest
                wrote on last edited by
                #7

                just tried with qt creator 2.0, its good ! :)

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tobias.hunger
                  wrote on last edited by
                  #8

                  chetankjain: Thanks:-)

                  1 Reply Last reply
                  0

                  • Login

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