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. Can qt creator implement context windows feature just like the SourceInsight ?
Forum Updated to NodeBB v4.3 + New Features

Can qt creator implement context windows feature just like the SourceInsight ?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qtcreator
9 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.
  • L Offline
    L Offline
    Lewis Chan
    wrote on last edited by
    #1

    When I move cursor to some function, then the function's implementation will appear in the context window, see the following image. I think that's quite convenient.

    0_1520565253800_context-win-in-source-insight.png

    Is it a plan for qt creator ?

    Thanks.

    J.HilkJ 1 Reply Last reply
    0
    • L Offline
      L Offline
      Lewis Chan
      wrote on last edited by
      #2

      Another question:

      When c++ key word auto is used, many IDE including qt creator cannot identify auto variable's call, which means you cannot use F2 to jump the function's implementation. Can this issue be solved ? I think IDE can guess the auto variable's type from the calling function.

      After all, auto is frequently used in modern C++. So it'll be great if this issue is solved.

      jsulmJ aha_1980A 2 Replies Last reply
      0
      • L Lewis Chan

        Another question:

        When c++ key word auto is used, many IDE including qt creator cannot identify auto variable's call, which means you cannot use F2 to jump the function's implementation. Can this issue be solved ? I think IDE can guess the auto variable's type from the calling function.

        After all, auto is frequently used in modern C++. So it'll be great if this issue is solved.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Lewis-Chan You should ask QtCreator developers. This forum is for users.
        See https://bugreports.qt.io/projects/QTCREATORBUG/summary or mailing lists.

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

        1 Reply Last reply
        1
        • L Lewis Chan

          Another question:

          When c++ key word auto is used, many IDE including qt creator cannot identify auto variable's call, which means you cannot use F2 to jump the function's implementation. Can this issue be solved ? I think IDE can guess the auto variable's type from the calling function.

          After all, auto is frequently used in modern C++. So it'll be great if this issue is solved.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Lewis-Chan said in Can qt creator implement context windows feature just like the SourceInsight ?:

          When c++ key word auto is used, many IDE including qt creator cannot identify auto variable's call, which means you cannot use F2 to jump the function's implementation. Can this issue be solved ? I think IDE can guess the auto variable's type from the calling function.

          This is QTCREATORBUG-19802

          Qt has to stay free or it will die.

          L 2 Replies Last reply
          0
          • L Lewis Chan

            When I move cursor to some function, then the function's implementation will appear in the context window, see the following image. I think that's quite convenient.

            0_1520565253800_context-win-in-source-insight.png

            Is it a plan for qt creator ?

            Thanks.

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @Lewis-Chan said in Can qt creator implement context windows feature just like the SourceInsight ?:

            When I move cursor to some function, then the function's implementation will appear in the context window, see the following image. I think that's quite convenient.

            Is it a plan for qt creator ?

            Thanks.

            It's not quite the same, but you can use 'Ctrl+LeftMouseClick' to jump to the function-buddy and if you 'Ctrl+LeftMouseClick' on the functionbody you'll jump to the definition of the function. And you can use 'Alt+LeftArrowKey' to jump back.

            this works also with variables of all kind


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            L 1 Reply Last reply
            1
            • aha_1980A aha_1980

              @Lewis-Chan said in Can qt creator implement context windows feature just like the SourceInsight ?:

              When c++ key word auto is used, many IDE including qt creator cannot identify auto variable's call, which means you cannot use F2 to jump the function's implementation. Can this issue be solved ? I think IDE can guess the auto variable's type from the calling function.

              This is QTCREATORBUG-19802

              L Offline
              L Offline
              Lewis Chan
              wrote on last edited by
              #6

              @aha_1980
              I see. Thanks.

              1 Reply Last reply
              1
              • J.HilkJ J.Hilk

                @Lewis-Chan said in Can qt creator implement context windows feature just like the SourceInsight ?:

                When I move cursor to some function, then the function's implementation will appear in the context window, see the following image. I think that's quite convenient.

                Is it a plan for qt creator ?

                Thanks.

                It's not quite the same, but you can use 'Ctrl+LeftMouseClick' to jump to the function-buddy and if you 'Ctrl+LeftMouseClick' on the functionbody you'll jump to the definition of the function. And you can use 'Alt+LeftArrowKey' to jump back.

                this works also with variables of all kind

                L Offline
                L Offline
                Lewis Chan
                wrote on last edited by
                #7

                @J.Hilk
                Thanks. I know that. Many times I just wish to see how the function under the cursor looks like , but I don't want to jump into that. So context windows should be better in this case.

                Maybe instead of providing a context windows, thumbnail floating around the cursor could be acceptable.

                aha_1980A 1 Reply Last reply
                0
                • L Lewis Chan

                  @J.Hilk
                  Thanks. I know that. Many times I just wish to see how the function under the cursor looks like , but I don't want to jump into that. So context windows should be better in this case.

                  Maybe instead of providing a context windows, thumbnail floating around the cursor could be acceptable.

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Lewis-Chan

                  There is at least a workaround for now: if you press Ctrl+Alt+LeftMouseClick, a new split is opened with the definition. To go back, you have to close the split, however.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0
                  • aha_1980A aha_1980

                    @Lewis-Chan said in Can qt creator implement context windows feature just like the SourceInsight ?:

                    When c++ key word auto is used, many IDE including qt creator cannot identify auto variable's call, which means you cannot use F2 to jump the function's implementation. Can this issue be solved ? I think IDE can guess the auto variable's type from the calling function.

                    This is QTCREATORBUG-19802

                    L Offline
                    L Offline
                    Lewis Chan
                    wrote on last edited by
                    #9

                    @aha_1980
                    Hi. As I know, qtcreator doesn't handle well with auto keyword. I wish another trick, when I put cursor onto a auto variable's call, such as

                    auto v = SomeClass();
                    v.func();
                    

                    Cursor is at func(). I wish to use shortcut key to show the option list, just as the result that I move cursor to Locator and input

                    :m func

                    then it will give me a list where func appears.

                    Is there such a shortcut ? If it exists, it may improve my code-reading greatly

                    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