Thread: Signal parameter - needed?
Thread: Signal parameter - needed?
Regular
price
151.00 ₹ INR
Regular
price
Sale
price
151.00 ₹ INR
Unit price
/
per
qt connect signal to slot with parameter Dan qt signal and slot
View full details
The button uses the clicked() signal and the label uses the slot setText() clicked() does not give any arguments to the slot setText() To
Other similar tries lead to a crash or a non-working connection In the end I just tried to wrap the signal- Note that Qt slots are fairly public - even if they're private, any signal connected to them can call the slot, including non-friends –
slot trisula88 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 Hi, you need to add the parameters in the signal when you call connect, but you can omit them in the slot, so you don't need a dummy parameter