When I first learnt about the switch...case statement many years ago, you could only use constant values in case statements, so if you wanted to compare pointer values as above, you had no choice but to use 'if...else' statements, so I've automatically used QSignalMapper in all of the above cases where I have had similar requirements.
Do anyone know when this all changed and the case keyword accepted non-constant values?





Reply With Quote

Bookmarks