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. What is a better IDE for QT
Qt 6.11 is out! See what's new in the release blog

What is a better IDE for QT

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qt creatorvisual studioide
25 Posts 9 Posters 1.6k 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.
  • Joe von HabsburgJ Joe von Habsburg

    @GrecKo said in What is a better IDE for QT:

    External libraries don't bring additional difficulties to me.

    For example, I could not run Qwt on debug mode, because like that :

    ee51b38b-bdb3-49bf-b742-cf9be09ef314-image.png

    What I actually wanted to ask was this: Which IDE is more professional for using/adding external libraries and debugging? Which one would be more performant and meaningful for me? As you know, Visual Studio has a different project structure; does this hinder project development or sharing? I need answers to these questions. Which one is used more by percentage? Why do people prefer that IDE? I'm curious about these things. Sorry for the inconvenience.

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote last edited by
    #5

    @Joe-von-Habsburg Not sure what the picture is supposed to say.
    "Which IDE is more professional for using/adding external libraries and debugging?" - if you use CMake it simply doesn't matter what IDE you use.
    "Visual Studio has a different project structure; does this hinder project development or sharing?" - if you use CMake it does not matter.
    "Which one is used more by percentage?" - I'm quite sure Visual Studio, but I don't have concrete numbers (and I guess others here also don't have numbers).
    "Why do people prefer that IDE?" - this is the official IDE from Microsoft for Windows development. QtCreator on the other side is a smaller IDE with less functions and focused on Qt development (but not limited to Qt). But it is available for more platforms.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    Joe von HabsburgJ 1 Reply Last reply
    4
    • jsulmJ jsulm

      @Joe-von-Habsburg Not sure what the picture is supposed to say.
      "Which IDE is more professional for using/adding external libraries and debugging?" - if you use CMake it simply doesn't matter what IDE you use.
      "Visual Studio has a different project structure; does this hinder project development or sharing?" - if you use CMake it does not matter.
      "Which one is used more by percentage?" - I'm quite sure Visual Studio, but I don't have concrete numbers (and I guess others here also don't have numbers).
      "Why do people prefer that IDE?" - this is the official IDE from Microsoft for Windows development. QtCreator on the other side is a smaller IDE with less functions and focused on Qt development (but not limited to Qt). But it is available for more platforms.

      Joe von HabsburgJ Offline
      Joe von HabsburgJ Offline
      Joe von Habsburg
      wrote last edited by
      #6

      @jsulm Thank you for reply :)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SimonSchroeder
        wrote last edited by
        #7

        I prefer Qt Creator for writing code over Visual Studio (just because I like its navigation better and because it is cross platform). With a CMake project it doesn't really matter. We still have older projects working with qmake. In this case it makes sense to create a Visual Studio project from the .pro file. It also means you need to change the .pro file instead of the VS project file (and then regenerate the VS project).

        For debugging I am always switching over to Visual Studio. The debugging environment within Qt Creator is too slow for larger projects.

        Especially with CMake-base projects you can also use Visual Studio Code. I have also tried CLion (now free for private projects). CLion is really nice and its debugging interface also works quite well (though I haven't used CLion for debugging on Windows, yet).

        You can also use WinDbg independent of any IDE. This even provides time travel debugging. But, I think it is a lot harder to work with.

        Joe von HabsburgJ JonBJ 2 Replies Last reply
        1
        • S SimonSchroeder

          I prefer Qt Creator for writing code over Visual Studio (just because I like its navigation better and because it is cross platform). With a CMake project it doesn't really matter. We still have older projects working with qmake. In this case it makes sense to create a Visual Studio project from the .pro file. It also means you need to change the .pro file instead of the VS project file (and then regenerate the VS project).

          For debugging I am always switching over to Visual Studio. The debugging environment within Qt Creator is too slow for larger projects.

          Especially with CMake-base projects you can also use Visual Studio Code. I have also tried CLion (now free for private projects). CLion is really nice and its debugging interface also works quite well (though I haven't used CLion for debugging on Windows, yet).

          You can also use WinDbg independent of any IDE. This even provides time travel debugging. But, I think it is a lot harder to work with.

          Joe von HabsburgJ Offline
          Joe von HabsburgJ Offline
          Joe von Habsburg
          wrote last edited by
          #8

          @SimonSchroeder Thank you so much for your reply, it was really helpful. :)

          1 Reply Last reply
          0
          • Joe von HabsburgJ Joe von Habsburg

            @GrecKo said in What is a better IDE for QT:

            External libraries don't bring additional difficulties to me.

            For example, I could not run Qwt on debug mode, because like that :

            ee51b38b-bdb3-49bf-b742-cf9be09ef314-image.png

            What I actually wanted to ask was this: Which IDE is more professional for using/adding external libraries and debugging? Which one would be more performant and meaningful for me? As you know, Visual Studio has a different project structure; does this hinder project development or sharing? I need answers to these questions. Which one is used more by percentage? Why do people prefer that IDE? I'm curious about these things. Sorry for the inconvenience.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote last edited by JoeCFD
            #9

            @Joe-von-Habsburg Did you add external libs with debug build? The release build of Qwt will not provide any debug info.

            Joe von HabsburgJ 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @Joe-von-Habsburg Did you add external libs with debug build? The release build of Qwt will not provide any debug info.

              Joe von HabsburgJ Offline
              Joe von HabsburgJ Offline
              Joe von Habsburg
              wrote last edited by
              #10

              @JoeCFD said in What is a better IDE for QT:

              Did you add external libs with debug build?

              Yes.

              JonBJ 1 Reply Last reply
              0
              • Joe von HabsburgJ Joe von Habsburg

                @JoeCFD said in What is a better IDE for QT:

                Did you add external libs with debug build?

                Yes.

                JonBJ Online
                JonBJ Online
                JonB
                wrote last edited by
                #11

                @Joe-von-Habsburg
                ...And was the debugger able to locate the sources for those libs?
                Provided you have debug libs and sources are found you ought to be able to get as much information out whether you use Creator or VS. If perchance VS can locate the sources but Creator does not that would be very different.

                1 Reply Last reply
                0
                • S SimonSchroeder

                  I prefer Qt Creator for writing code over Visual Studio (just because I like its navigation better and because it is cross platform). With a CMake project it doesn't really matter. We still have older projects working with qmake. In this case it makes sense to create a Visual Studio project from the .pro file. It also means you need to change the .pro file instead of the VS project file (and then regenerate the VS project).

                  For debugging I am always switching over to Visual Studio. The debugging environment within Qt Creator is too slow for larger projects.

                  Especially with CMake-base projects you can also use Visual Studio Code. I have also tried CLion (now free for private projects). CLion is really nice and its debugging interface also works quite well (though I haven't used CLion for debugging on Windows, yet).

                  You can also use WinDbg independent of any IDE. This even provides time travel debugging. But, I think it is a lot harder to work with.

                  JonBJ Online
                  JonBJ Online
                  JonB
                  wrote last edited by
                  #12

                  @SimonSchroeder said in What is a better IDE for QT:

                  For debugging I am always switching over to Visual Studio. The debugging environment within Qt Creator is too slow for larger projects.

                  Could you say a few words about this, please? Why would Creator be any slower than VS? I thought Creator just provides a visual wrapper over the underlying debugger facilities? I am Linux/gdb, do you think your comment applies only under Windows Creator vs VS?

                  S 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @SimonSchroeder said in What is a better IDE for QT:

                    For debugging I am always switching over to Visual Studio. The debugging environment within Qt Creator is too slow for larger projects.

                    Could you say a few words about this, please? Why would Creator be any slower than VS? I thought Creator just provides a visual wrapper over the underlying debugger facilities? I am Linux/gdb, do you think your comment applies only under Windows Creator vs VS?

                    S Offline
                    S Offline
                    SimonSchroeder
                    wrote last edited by
                    #13

                    @JonB This has been a topic a couple of times on this forum. This is only with Qt Creator on Windows and it seems to be the visualizers. IIRC it has to do with some script for visualizing std::vector or something like this. In theory, it should be possible to circumvent this in Qt Creator. But, it has also been a well known problem for some time now and I believe there has already been a discussion for a solution on this forum (most likely also a bug report mentioning the corresponding post). Nothing has happened for years, so I'm not expecting it to change. This leaves us with VS for debugging as the better alternative. (For smaller projects the integrated debugging environment in Qt Creator seems to work fine. However, in many cases I cannot evaluate any expressions in Qt Creator. This is really anoying if I need to look at element 10305 of a vector, but the visualizer cannot use the index operator.)

                    One additional advantage of VS over Qt Creator for debugging is that I can just skip to a certain line by just clicking there without having to set a breakpoint (and then immediately removing it afterwards). This is really helpful for jumping over loops. Other IDEs also have this feature.

                    JonBJ 1 Reply Last reply
                    0
                    • S SimonSchroeder

                      @JonB This has been a topic a couple of times on this forum. This is only with Qt Creator on Windows and it seems to be the visualizers. IIRC it has to do with some script for visualizing std::vector or something like this. In theory, it should be possible to circumvent this in Qt Creator. But, it has also been a well known problem for some time now and I believe there has already been a discussion for a solution on this forum (most likely also a bug report mentioning the corresponding post). Nothing has happened for years, so I'm not expecting it to change. This leaves us with VS for debugging as the better alternative. (For smaller projects the integrated debugging environment in Qt Creator seems to work fine. However, in many cases I cannot evaluate any expressions in Qt Creator. This is really anoying if I need to look at element 10305 of a vector, but the visualizer cannot use the index operator.)

                      One additional advantage of VS over Qt Creator for debugging is that I can just skip to a certain line by just clicking there without having to set a breakpoint (and then immediately removing it afterwards). This is really helpful for jumping over loops. Other IDEs also have this feature.

                      JonBJ Online
                      JonBJ Online
                      JonB
                      wrote last edited by JonB
                      #14

                      @SimonSchroeder
                      Thank you, interesting. Under Linux Creator/gdb I have basically no visualizers for Qt stuff. I do not have the Qt source code installed. I agree you cannot enter even the most basic expression for evaluation, only straight variables. So I cannot view a particular e.g. QList index, as neither .at(10) nor [10] are allowed :( But I limp through. I have always assumed this is to do with not having Qt sources, if it could be set up to work somehow instead I would love to know...?

                      One additional advantage of VS over Qt Creator for debugging is that I can just skip to a certain line by just clicking there without having to set a breakpoint (and then immediately removing it afterwards). This is really helpful for jumping over loops. Other IDEs also have this feature.

                      Right-click in "breakpoint" gutter/margin to left of your code, on context menu only (no shortcut assigned) there is Jump to line XXX, which I assume is what you mean? Otherwise there is also Run to line XXX, so you can either run to a line or skip everything up to a line with a single click and no breakpoint add/remove? Both of these available in Creator as in VS.

                      S 1 Reply Last reply
                      0
                      • aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote last edited by
                        #15

                        @JonB

                        • Run to line: Sets a temporary breakpoint on the line and stops when the program reaches this breakpoint
                        • Jump to ĺine: Sets the program counter to this line, skipping all instructions that are between the current program counter and the target. Use that with cause, because it changes the program flow and can have any possible side effects.

                        Regards

                        Qt has to stay free or it will die.

                        JonBJ 1 Reply Last reply
                        0
                        • aha_1980A aha_1980

                          @JonB

                          • Run to line: Sets a temporary breakpoint on the line and stops when the program reaches this breakpoint
                          • Jump to ĺine: Sets the program counter to this line, skipping all instructions that are between the current program counter and the target. Use that with cause, because it changes the program flow and can have any possible side effects.

                          Regards

                          JonBJ Online
                          JonBJ Online
                          JonB
                          wrote last edited by
                          #16

                          @aha_1980 Hi.
                          Not sure what/why you are telling me? I know this as I wrote, since I use them all the time! Was trying to make @SimonSchroeder aware that if he wants one of these (on re-read perhaps the Run to line) they are available in Creator debugging as they are in VS.

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mmertama
                            wrote last edited by
                            #17

                            QtCreator is buggy beyond imagination. Visual Studio Code needs some more setup, but long term is worth of try

                            M 1 Reply Last reply
                            0
                            • M mmertama

                              QtCreator is buggy beyond imagination. Visual Studio Code needs some more setup, but long term is worth of try

                              M Offline
                              M Offline
                              mmertama
                              wrote last edited by
                              #18

                              @mmertama said in What is a better IDE for QT:

                              QtCreator is buggy beyond imagination. Visual Studio Code needs some more setup, but long term is worth of try

                              [cmake] CMake Error: Error: generator : Ninja
                              [cmake] Does not match the generator used previously: Ninja
                              [cmake] Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

                              .... The second generator may have an extra space? :-o

                              1 Reply Last reply
                              0
                              • Joe von HabsburgJ Joe von Habsburg

                                I'm using Qt Creator. In some cases, especially when using an external library, debugging or finding the cause of a crash becomes impossible. I've tried using Visual Studio but haven't been very successful. Which IDE do you think is more professional, and why?

                                N Offline
                                N Offline
                                nicholas_ru
                                wrote last edited by
                                #19

                                @Joe-von-Habsburg For programmer not significant how ide use. I am know developer, who use nano editor and for professional education.

                                Joe von HabsburgJ 1 Reply Last reply
                                0
                                • N nicholas_ru

                                  @Joe-von-Habsburg For programmer not significant how ide use. I am know developer, who use nano editor and for professional education.

                                  Joe von HabsburgJ Offline
                                  Joe von HabsburgJ Offline
                                  Joe von Habsburg
                                  wrote last edited by
                                  #20

                                  @nicholas_ru

                                  sudo echo "You funny :)"
                                  
                                  1 Reply Last reply
                                  0
                                  • Joe von HabsburgJ Joe von Habsburg has marked this topic as solved
                                  • JonBJ JonB

                                    @SimonSchroeder
                                    Thank you, interesting. Under Linux Creator/gdb I have basically no visualizers for Qt stuff. I do not have the Qt source code installed. I agree you cannot enter even the most basic expression for evaluation, only straight variables. So I cannot view a particular e.g. QList index, as neither .at(10) nor [10] are allowed :( But I limp through. I have always assumed this is to do with not having Qt sources, if it could be set up to work somehow instead I would love to know...?

                                    One additional advantage of VS over Qt Creator for debugging is that I can just skip to a certain line by just clicking there without having to set a breakpoint (and then immediately removing it afterwards). This is really helpful for jumping over loops. Other IDEs also have this feature.

                                    Right-click in "breakpoint" gutter/margin to left of your code, on context menu only (no shortcut assigned) there is Jump to line XXX, which I assume is what you mean? Otherwise there is also Run to line XXX, so you can either run to a line or skip everything up to a line with a single click and no breakpoint add/remove? Both of these available in Creator as in VS.

                                    S Offline
                                    S Offline
                                    SimonSchroeder
                                    wrote last edited by
                                    #21

                                    @JonB said in What is a better IDE for QT:

                                    Otherwise there is also Run to line XXX, so you can either run to a line or skip everything up to a line with a single click and no breakpoint add/remove?

                                    Alright, I didn't know about this one. But, in this respect VS is still better because it is not hidden in a context menu ;-). It's already bad enough that I need to switch from my beloved keyboard to the mouse. An extra click is just too much... (This is slightly tongue in cheek–don't take it too seriously.)

                                    JonBJ 1 Reply Last reply
                                    0
                                    • aha_1980A Offline
                                      aha_1980A Offline
                                      aha_1980
                                      Lifetime Qt Champion
                                      wrote last edited by
                                      #22

                                      @SimonSchroeder Have a look at https://doc.qt.io/qtcreator/creator-how-to-step-through-code.html

                                      Run to line has the shortcut Ctrl+F10 ;)

                                      Qt has to stay free or it will die.

                                      1 Reply Last reply
                                      2
                                      • S SimonSchroeder

                                        @JonB said in What is a better IDE for QT:

                                        Otherwise there is also Run to line XXX, so you can either run to a line or skip everything up to a line with a single click and no breakpoint add/remove?

                                        Alright, I didn't know about this one. But, in this respect VS is still better because it is not hidden in a context menu ;-). It's already bad enough that I need to switch from my beloved keyboard to the mouse. An extra click is just too much... (This is slightly tongue in cheek–don't take it too seriously.)

                                        JonBJ Online
                                        JonBJ Online
                                        JonB
                                        wrote last edited by JonB
                                        #23

                                        @SimonSchroeder
                                        You have to indicate somehow for both "Run to line" & "Jump to line" which line you want it to continue to! Creator allows it via a right-click on the desired line. Unless your VS can either (a) eye-read or (b) mind-read you will still have to tell it that, somehow... ;-)

                                        If you want to stick with keyboard you can move the cursor there and press as @aha_1980 has said (existing shortcut) or add your own key if you want one for Jump to line, which is less common.

                                        S 1 Reply Last reply
                                        0
                                        • JonBJ JonB

                                          @SimonSchroeder
                                          You have to indicate somehow for both "Run to line" & "Jump to line" which line you want it to continue to! Creator allows it via a right-click on the desired line. Unless your VS can either (a) eye-read or (b) mind-read you will still have to tell it that, somehow... ;-)

                                          If you want to stick with keyboard you can move the cursor there and press as @aha_1980 has said (existing shortcut) or add your own key if you want one for Jump to line, which is less common.

                                          S Offline
                                          S Offline
                                          SimonSchroeder
                                          wrote last edited by
                                          #24

                                          @JonB said in What is a better IDE for QT:

                                          You have to indicate somehow for both "Run to line" & "Jump to line" which line you want it to continue to!

                                          You are right. VS shows a little icon on the line you are currently hovering with the mouse. So, I just need a single click after locating the line whereas in Qt Creator I need to first right click and then pick the correct menu entry and left click. While I'm debugging I want as little friction as possible so as to not loose the context of what is going on.

                                          @aha_1980 said in What is a better IDE for QT:

                                          Run to line has the shortcut Ctrl+F10 ;)

                                          I'm gonna remember this and probably use it the next time I have a smaller program which I can debug in Qt Creator.

                                          JonBJ 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