C++ (Qt)void MyButton::SlotPressed( void ){ if (!m_flagOpened) { ShowPopupWindow(); m_flagOpened = true; }}