Try this way:
Try this way:
ToddAtWSU (27th November 2007)
ToddAtWSU (27th November 2007)
A read only spinbox yields no advantage over a regular line edit. The text is assembled every time you change it anyway, so there are no performance benefits of using QSpinBox over QLineEdit. And if you want to display something, you should use QLabel or friends, not QSpinBox or QLineEdit.
What kind of argument is this? Ever heard of functions or methods?![]()
haha...yeah I just never think of writing functions for something so simple like that...i admit a bad argument and I think i will just write a simple function!![]()
My point is that you should use proper components for proper tasks. For example you shouldn't use a combobox if you have only two choices - use radio buttons or a checkbox instead. If you want to display text, don't use input widgets. These are rules of good ui design.
Bookmarks