[Qt-interest] Updating a QTableView while editing it
Mildred Ki'Lya
ml.mildred593 at gmail.com
Tue May 19 07:56:38 CEST 2009
Hi,
In my software, I have a special TableView where some cells are computed
given the value of other cells. What I would like is that when a cell I
edit that is used as source to compute the value of other cells is
modified (I'm using QComboBox here) to have the other cells of the table
updated as well, without having to close the editor.
So, for example if I choose an item in my QComboBox, I call the slot
commitData(QWidget*) of the view. I can see via a debug trace that my
model is updated, and that dataChanged() is called on the model, but the
view doesn't update itself.
What's wrong there? Is that even possible?
Thanks.
Mildred.
--
Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: <mildred at jabber.fr>
│ Website: <http://ki.lya.online.fr> GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090519/55b331f9/attachment.bin
More information about the Qt-interest-old
mailing list