1
/
of
1
Qt - custom signal sending an integer
Qt - custom signal sending an integer
Regular
price
105.00 ₹ INR
Regular
price
Sale
price
105.00 ₹ INR
Unit price
/
per
qt connect signal to slot with parameter Dan qt signal slot
View full details
As koan suggests the best approach is to use another slot with a QString argument and then call the slot you actually want Share
parameters to the function should match those expected by QObject::connect() The even more interesting thing is that if I qualify the connect() call so Qt's signals and slots mechanism ensures that if you connect a signal to a slot, the slot will be called with the signal's parameters at the right time
jili slot tips Quand tu fais un connect ton slot doit recevoir exactement les mêmes paramètres que ton signal Dans ton cas ton signal clicked() ne recoit rien I am seeing connect() with 3 or 4 parameters It looks like the rule is that with 4 parameters, we can get the required type of the 2nd
![Qt - custom signal sending an integer](10082.jpg)