Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator refactoring
Forum Updated to NodeBB v4.3 + New Features

Qt Creator refactoring

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.2k 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.
  • A Offline
    A Offline
    adutzu89
    wrote on last edited by
    #1

    For the love of God why on earth QT Creator allows refactoring of included headers?
    I've made the mistake of using refactoring with prior knowledge from eclipse and didn't thought that Qt Creator is that "smart", and from refactoring only the method's signature and it's usage....I've managed to change everything from the project and from Qt itself....now I have to reinstall Qt.....good thing the project isn't that big......but still........

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      how did u manage to get it to change inside Qt?
      My refactor only changes my files?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adutzu89
        wrote on last edited by
        #3

        Refractor -> Rename symbol under cursor, I wanted to change the type of an argument of a method from QTcpSocket to QObject and I hit the replace button without reading what files it changed....afterwards I got errors in QTcpSocket header file....when I opened it everything was QObject, after I changed back again i saw that it modified every file related to included headers where the word existed...source files also :>....where was QObject...now it was QTcpSocket. Well new days....learned new things :D....but man I was nervous....i had to either reinstall components or manually change the files.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @adutzu89 said:

          QTcpSocket

          oh so you started the refactor inside your own file but it also changed the
          Qt include file?
          Didn't know it would do that :)

          thank you for the warning!

          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