Press one button - emit signal more time
It's possible to use some bolean to avoid press one button all time? For example sometimes i'm doing thing's repetitive for example i'm doing some paint with qt and i want when i press button all time draw. In other words, it is possible to put on one botton pressed all time with some boolean to avoid press many times.
@Jeronimo Why not just call the slot which is connected to your button where you need it? And yes you can set a boolean variable in the button slot.
@jsulm call like so i only call the slot? can you put some little example ? thx
Jeronimo last edited by Jeronimo
@jsulm so i only call the slot and will emit all time?. But what will happen with other signals? will be stoped? idk I call directly the slot and then i will not have any problem the slot the button will be pressed all time?
@jsulm normally i call with this way:
But you recommend me to call slot? where i put this call to be better?¿
@Jeronimo Sorry, I have no idea what you are asking for. Can you please explain better what you mean?
A slot can be called just like any other method. That means you can for example call paint() whenever you need.