In this case it's more "elegant" to use QButtonGroup assigning an identificator for each icon.