You could even use the enum value as the id.
Cheers,
_
You could even use the enum value as the id.
Cheers,
_
In QButtonGroup instead int?
But then this must be simple enum not enum class to provide conversion between string and int.
Is this what you mean?
Yes. Would remove the necessity of a switch, the int would be the value you are looking for.
Cheers,
_
atomic (13th August 2014)
Bookmarks