When you use the Qt designer to design your form, you can group buttons by selecting them and choosing "Assign to button group" then "New button group" from the context menu.
Friday, February 10, 2017
Qt Enumerations to String
Have you ever been in the need of showing a more meaningful message that just the value related to a particular Qt Enumeration? I'm talking especially about logging or debugging situations, were a sentence like "Dialog modality is Qt::WindowModal" would be far far better than "Dialog modality is 1" instead.
Labels:
enum as string,
Enumeration,
QMetaEnum,
QMetaObject,
Qt
Subscribe to:
Posts (Atom)