[Qt-interest] QSqlRelationalTableModel - comboBox duo
Dudás József
dj1999 at freemail.hu
Wed Jul 8 12:42:15 CEST 2009
Hello,community!
I have again challange with QSqlRelationalTableModel.
Have a form with tableview -> relationaltablemodel ( have more relations ) and some combobox with sqltablemodel one of this is editable. One of relation of relationaltablemodel use the same table als this combo box. My difficulties is if new data write to combo box can not set data in relationaltablemodel. I was reimplement the tablemodel if add new data to combobox than refresh the relationalModel( column )->select(). Before to setData to model I check the relational table data and have the new index too. But get back fals if write data to table.
ComboBox -> model -> select -> emit signal repopulated -> myrelationaltablemodel repopulated slot relationalModel( column )->select() -> application setData( QModelIndex, newDataIndex ) -> result false.
What is wrong in this concept?
Thank you in anticipation.
Joe
<br><br>________________________________________________________<br><a href="http://ad.adverticum.net/b/cl,1,67554,339579,419755/click.prm" "target=_blank">
Ezt hozta a nyári Mikulás! <br> Raiffeisen Egyet Vissza Személyi Kölcsön. <br> Decemberben visszaadunk egy havi törlesztőrészletet!!</a>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090708/6ad329ca/attachment.html
More information about the Qt-interest-old
mailing list