[Interest] Add row to model *with data*?
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Fri Aug 16 10:46:10 CEST 2019
Il 15/08/19 23:42, Matthew Woehlke ha scritto:
> Is there any way, with the existing QAbstractItemModel API, to specify
> the data that the row should contain in the same call that adds the row?
> Even better, is there any way to ask the model to add a row, with data,
> but*not* specify where the row is to be added? (The model would then
> return the new row index, or -1 if it could not complete the operation
> as requested.)
There isn't such an API. Maybe you can fake it via a drop?
My 2 c,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190816/502764a2/attachment.bin>
More information about the Interest
mailing list