Hi all,
While using the scene graph view Qt widget I did not see the values of
the the FieldContainers. Commenting out two method calls made the trick.
Here the patch.
The long story is that 2 different methods were called to place a
value into a Qtable : setCellWidget and setItem. The former deleting the
first content set by the first call... I removed the setItem call and it
works the way I supposed it to work.
HTH
Mathieu
? .OSGQFieldContainerView_qt.cpp.swp
cvs diff: Diffing .
Index: OSGQFieldContainerView_qt.cpp
===================================================================
RCS file:
/cvsroot/opensg/OpenSG/Source/WindowSystem/QT/OSGQFieldContainerView_qt.cpp,v
retrieving revision 1.1
diff -u -3 -r1.1 OSGQFieldContainerView_qt.cpp
--- OSGQFieldContainerView_qt.cpp 20 Jun 2003 16:56:15 -0000 1.1
+++ OSGQFieldContainerView_qt.cpp 2 Aug 2004 08:56:59 -0000
@@ -230,8 +230,8 @@
QSFieldView *pSFView = new QSFieldView(pFC, i+1, uiAspect, this);
_pTable->setCellWidget(i, ValueColumn, pSFView );
- _pTable->setItem (i, ValueColumn,
- new QWidgetTableItem(_pTable));
+ //_pTable->setItem (i, ValueColumn,
+ // new QWidgetTableItem(_pTable));
connect(pSFView,
SIGNAL(clicked (FieldContainerPtr, UInt32,
@@ -253,8 +253,8 @@
QMFieldView *pMFView = new QMFieldView(pFC, i+1, uiAspect, this);
_pTable->setCellWidget(i, ValueColumn, pMFView );
- _pTable->setItem (i, ValueColumn,
- new QWidgetTableItem(_pTable));
+ //_pTable->setItem (i, ValueColumn,
+ // new QWidgetTableItem(_pTable));
connect(pMFView,
SIGNAL(clicked (FieldContainerPtr, UInt32,