Skip to product information
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
Sale Sold out

https://www.mkty586.com:9443/entry/register92830/?i_code=78342468

qt connect signal to slot with parameter   Dan qt signal slot

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

View full details