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. QtCreator
Forum Updated to NodeBB v4.3 + New Features

QtCreator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 2 Posters 781 Views 2 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.
  • E Offline
    E Offline
    egorski
    wrote on last edited by
    #1

    In QtCreator, in the Design view (when I open Forms like mainwindow.ui)

    How to view, edit, delete all the connections that I've made in the graphical Design tool?

    E.g. I created connections in Design by selecting a button, clicking "Go to slot..." and then "clicked()". I know I can browse mainwindow.hpp/cpp and see the functions created, but is there easier way to list all the connections?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Yes - select a widget, click on "Signals and slots editor" tab at the bottom of the screen:

      Screenshot_20211007_072110.png

      (Z(:^

      E 1 Reply Last reply
      1
      • sierdzioS sierdzio

        Yes - select a widget, click on "Signals and slots editor" tab at the bottom of the screen:

        Screenshot_20211007_072110.png

        E Offline
        E Offline
        egorski
        wrote on last edited by egorski
        #3

        @sierdzio said in QtCreator:

        Yes - select a widget, click on "Signals and slots editor" tab at the bottom of the screen:

        That's what I thought, but Action editor as well as Signals and Slots editor are always displaying empty, even if I select in editor the widget that has assigned slots like on click etc.

        EDIT:

        Only way to show something in that tabs, is to go into mode of Edit Signals/Slot (F5) and then connect one GUI widget to another GUI widget and then select a signal and a slot - then I see that connection in the tab at bottom.

        But I want instead to see (also) connection that is created when I connect slot of widget to a c++ function in code - as done when I select widget and click "Go to slot...".

        Qt Creator4.8.2 based on Qt 5.11.3, Debian 10.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Sounds like a bug.

          (Z(:^

          E 1 Reply Last reply
          0
          • sierdzioS sierdzio

            Sounds like a bug.

            E Offline
            E Offline
            egorski
            wrote on last edited by
            #5

            @sierdzio I just now updated my post with details of what is/isn't shown, and with my system info. Can we confirm it's a bug or something? Known? Where to report if not

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Hm, now that I check it deeper, I think this is not for automatic "go to slot" connections, but for more manual connections you can add with that big fat "+" button.

              So, no bug and it also means there is no easy way to look up all those "go to slot" connections. Which is probably good, actually, as that option should IMO be removed from Qt and from Creator. It's much better and safer to use explicit connections, using new syntax.

              (Z(:^

              E 1 Reply Last reply
              0
              • sierdzioS sierdzio

                Hm, now that I check it deeper, I think this is not for automatic "go to slot" connections, but for more manual connections you can add with that big fat "+" button.

                So, no bug and it also means there is no easy way to look up all those "go to slot" connections. Which is probably good, actually, as that option should IMO be removed from Qt and from Creator. It's much better and safer to use explicit connections, using new syntax.

                E Offline
                E Offline
                egorski
                wrote on last edited by egorski
                #7

                @sierdzio said in QtCreator:

                So, no bug and it also means there is no easy way to look up all those "go to slot" connections. Which is probably good, actually, as that option should IMO be removed from Qt and from Creator. It's much better and safer to use explicit connections, using new syntax.

                Current form is already not fully comfortable.

                The thing that would speed up developer's workflow at least for me, would be so that I select a widget and I see list of what it connects to (at least to Ui creator knowledge).

                I want to look - "oh.. this button" and quickly see what actions it executes and jump to them, now I click Go to slot... which is 2 clicks, and requires me to remember which slot I used (e.g. OnClick / Select / Activate / ....) and even then I do not see a list of existing slots.

                Certainly such option would help me a lot to organise what controls do what, in the nice graphical way.

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  Yes, I see what you mean. There is a graphical view of signals and slots but it works only for connections between UI elements. Tap F4 to get to it.

                  But what you wrote is a great suggestion, please if you have some time report it on Qt bugtracker as a feature request!

                  (Z(:^

                  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