[Qt-interest] QTreeView with doubles not showing a spin box

Brian McKinnon bpmckinnon.qt at gmail.com
Wed May 25 21:53:27 CEST 2011


Hey everyone,

I'm having some trouble with the QTreeView and nothing I do is changing my
outcome.  I want to have floating point values modifyable with a double spin
box.  It looks like this should be the default behaviour but I'm having no
luck.

I have a QTreeView with a QStandardItemModel attached. The QStandardItem's
inside the model have been overloaded as custom EntryItem's.  Everything
else is standard objects.  The tree builds properly and displays/edits
properly.

I've tried modifying the QItemDelegate in my view with no change and I've
verified that the default style factory is producing double spin box's for
QVariable of type double.

This has happened with both qt 4.6.2 and 4.7.3 on windows.

Any suggests on how to enable the double spin boxes would be greatly
appreciated.

Thanks,
Brian!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110525/15723934/attachment.html 


More information about the Qt-interest-old mailing list