Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Insert rows

$
0
0
Hello everyone, Would you please help me? I have a QML list of items. And I am using C++ bindings to manipulate a list showed in QML. I did implement this function : void PatientModelpps::addPatient(const Patient &patient) {     beginInsertRows(QModelIndex(), 0, 1);     m_Patients << patient;     endInsertRows(); } to add an Item, but it adds an item at the end on the list whereas I want it at the top of the list. What can I do ? Thanks.

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>