yannwilfried
6th August 2013, 09:04
Hello all,
I have a model displaying data in a tree view. I implemented a proxy model to show some categories of the tree view in a table view. On my table view, I have on each column different types of items (QComboBox, 3 x QDoubleSpinBox and a QCheckBox). I'm plotting various curves depending on the data in my Table. I'm plotting data stored in the rows and to be able to update my plot, I will like to react to changes in the combo box, the spin boxes and the check box.
Is there a way to catch the row where a signal whas a emitted or do I need to write a slot that react to the signals
currentIndexChanged (http://qt-project.org/doc/qt-4.8/qcombobox.html#currentIndexChanged), valueChanged (http://qt-project.org/doc/qt-4.8/qdoublespinbox.html#valueChanged-2) and stateChanged (http://qt-project.org/doc/qt-4.8/qcheckbox.html#stateChanged).
Thanks for your hints,
Yann
I have a model displaying data in a tree view. I implemented a proxy model to show some categories of the tree view in a table view. On my table view, I have on each column different types of items (QComboBox, 3 x QDoubleSpinBox and a QCheckBox). I'm plotting various curves depending on the data in my Table. I'm plotting data stored in the rows and to be able to update my plot, I will like to react to changes in the combo box, the spin boxes and the check box.
Is there a way to catch the row where a signal whas a emitted or do I need to write a slot that react to the signals
currentIndexChanged (http://qt-project.org/doc/qt-4.8/qcombobox.html#currentIndexChanged), valueChanged (http://qt-project.org/doc/qt-4.8/qdoublespinbox.html#valueChanged-2) and stateChanged (http://qt-project.org/doc/qt-4.8/qcheckbox.html#stateChanged).
Thanks for your hints,
Yann