Qt 6.11 is out! See what's new in the release
blog
How is it possible to activate two functions while clicking a button?
-
I have this code:
connect(button, &QPushButton::clicked, this, [=]() { StartToSendCommand(fileName, textEdit); });and I want to add function-- func() --that would activated when the button clicked
@RuWex said in How is it possible to activate two functions while clicking a button?:
I have this code:
connect(button, &QPushButton::clicked, this, [=]() { StartToSendCommand(fileName, textEdit); });and I want to add function-- func() --that would activated when the button clicked
Then call
func()afterStartToSendCommand(fileName, textEdit); -
just connect func() in a second connect statement
the clicked signal should now run both slot functions.