[Qt-interest] Generic input widgets for varying types - how to?

Sean Harmer sean.harmer at maps-technology.com
Fri Mar 27 20:44:06 CET 2009


Hi,

On Friday 27 March 2009 19:18:05 Helge Preuss wrote:
> What I am trying to achieve:
>
> I need a widget which can serve as input widget for several types. For
> example, if the parameter read from the widget is an integer, it should
> display a QSpinBox. If it's a string, a QLineEdit. There are other
> types, but I'll limit myself to these.
Take a look at QItemEditorFactory:

http://doc.trolltech.com/4.5/qitemeditorfactory.html

Sean



More information about the Qt-interest-old mailing list