The first reason is that I just want to know it, if it is possible.
The second, let's suppose that I have a application where is a lot of buttons and I'm not sure if is good / clean / .. make a lot of connections. I think that could be better make a event that is automatically called after every clicked button and inside this function (event) will be sth to get AccessibleName.
Pseudocode:
void MainWindow::event(sth) {
if(sth->accessibleName == "btn1")
// do stuff #1
else if(sth->accessibleName == "btn2")
// do stuff #2
etc...
}
void MainWindow::event(sth) {
if(sth->accessibleName == "btn1")
// do stuff #1
else if(sth->accessibleName == "btn2")
// do stuff #2
etc...
}
To copy to clipboard, switch view to plain text mode
So the main purpose of it is how to serve a lot of buttons.
Bookmarks