I did a check with isVisible :
/* virtual */ void ZeConversationWidget
::showEvent(QShowEvent * event
) {
if (mConversationInput->getMessageInput().isVisible())
{
// My code gets here
std::cout << "Hello\n";
mConversationInput->getMessageInput().setFocus();
}
}
/* virtual */ void ZeConversationWidget::showEvent(QShowEvent * event)
{
if (mConversationInput->getMessageInput().isVisible())
{
// My code gets here
std::cout << "Hello\n";
mConversationInput->getMessageInput().setFocus();
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks