Hello:
I'm creating a Windows Form in Qt Designer, and I would wish to add a check mark icon (or red cross icon) to validate an entry in an edit field. What control can I use to display this icon or image?
Thanks
Gus
Hello:
I'm creating a Windows Form in Qt Designer, and I would wish to add a check mark icon (or red cross icon) to validate an entry in an edit field. What control can I use to display this icon or image?
Thanks
Gus
Use a QLabel with a QPixmap and place it in a layout next to the line edit. You can set the pixmap to be a check mark, an X, or nothing depending on how you want to display the status of the edit field's contents.
You could also think about using a QValidator or a QCompleter on the line edit if that is feasible to prevent the user from entering the wrong thing in the first place.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks