sashoalm
sashoalm

Reputation: 79685

Delete signal/slot connection from Qt Designer

How do I delete a signal/slot connection that I've created from Qt Designer? I created such a connection, but now it's no longer needed and I want to delete it.

I tried right-clicking on it, but the Delete action is disabled:

enter image description here

I can't use Select All because I have other signals/slots which I don't want to delete. Basically I can't select the connection to delete it.

Upvotes: 1

Views: 2337

Answers (3)

H.M
H.M

Reputation: 557

enter image description here

1-> is where you can edit signals and slots (drag and drop) but if you wanna clear any connection , do step 2 and 3.

2-> right click here and check "signals and slots editor".(or go to menu and "view->views->signals and slots editr")

3-> in this place you can see connections that you added in step 1 , you can remove them! by the "-" button ( that is red there).

Upvotes: 0

Johnny Jillky
Johnny Jillky

Reputation: 11

I just had the same issue using PyQt5 and I can't click on the connection at all, despite what the documentation says to do. However, the signal/slot editor is another place you can delete them. It needs to be checked in the View section, and it should appear somewhere. Mine was in a tab at the bottom right corner. You can just click the connection you want to delete and press the minus button.

Signal/slot editor

Upvotes: 1

RobbieE
RobbieE

Reputation: 4360

Inside QtDesigner, select View->Signal/Slot Editor. Select the connection you wish to delete and then click the big red minus icon.

EDIT:

Here's the documentation describing what you need to do.

Upvotes: 2

Related Questions