tags:

views:

82

answers:

3

Hi, I have started to play a little with Qt 4. And then I have come across a problem with the Qt Designer. In the Signal/Slots editor I can only setup the connections that is listed there, and not all the slots is listed. If I try to add it manualy in the .ui file, the connection would not work. If I add it in the ui_*.h file it workes fine, but then the connection is deleted when I change the design. Does anyone have any good tips to how I can get around this bug? Or to ask another way: How can I make the Qt Designer list all the availible slots?

A: 

You might try to use uic's autoconnecting feature.

However you won't be able to see all available slots but if you use the same name in both Designer and code - they should automatically be connected.

Marcin Gil
+1  A: 

By default not all signals/slots are shown. You could try checking the "show signals and slots inheritied from ...." checkbox in the lower left hand corder of the "Configure Connection" dialog that comes up when you try to create a signal.

Beyond that, you can either do what Marcin said and use auto-connections, or manually write connect statements in the constructor of the object that uses the ui.

Evan Teran
A: 

I found the reference to the ui. So I managed to set up the connection manualy in the constructor.

Tanks for the replay :)

Rolf Anders