PDA

View Full Version : does there exists any sofware to manipulate/view signals/slots in graphical view?



saugumas
21st November 2007, 18:38
does there exists any sofware to manipulate/view signals/slots in graphical view?

wysota
21st November 2007, 19:30
Define "manipulate". Qt Designer has a connection editor.

saugumas
21st November 2007, 20:20
Define "manipulate". Qt Designer has a connection editor.

but using Designer-qt4 signal/slots editor I can't connect signals to slots outside .ui object, for example I can't even add custom function(slot) to button clicked() signal, I only can add default slots from other widgets.
And it would be very nice to edit signal/slots in graphical view(not by hand code) to all Qt objects(for example QThread, etc), not only .ui objects.

wysota
21st November 2007, 20:24
Designer operates on forms. The rest is pure hand written code. Designer has no knowledge of it, so it won't allow any "graphical" way of connecting signals and slots that were not even defined yet.

saugumas
21st November 2007, 20:32
Designer operates on forms. The rest is pure hand written code. Designer has no knowledge of it, so it won't allow any "graphical" way of connecting signals and slots that were not even defined yet.

Ok, understood, it would be not as simple to do that as I expected, I confused objects with classes.

wysota
21st November 2007, 20:38
I guess one could make a tool that would scan class headers to look for signals and slots and then allow generating code for connecting them. But it's a tricky thing and would be prone to errors. It's much simpler to use the auto-connect feature to connect signals and slots according to object names.