@elfring said in Software development challenges around index creation for data models:
Will your data source work without hierarchies then?
I don't follow. This is a table model, there's no hierarchy here.
@Christian-Ehrlicher
ahh, you are right. Good catch.
http://doc.qt.io/qt-5/qjsonvalue.html#toDouble
converts the QJsonValue to double if its that type().
in this case it will return defaultValue (0)
so its something like
QJsonValue bid1 = jsonObj.value("bid_1");
QString asStr=bid1.toString();
double n = asStr.toDouble();
qDebug() << n;
@Geeva
The easies way is to move your task into its own function that expects q QList<QString> as an argument:
void myClass::myFunction(QList<QString> startvalue){
//do stuff eg:
qDebug() << "Value Received from server :" << startvalue;
QStringList first = startvalue.split("|");
int firstSize = first.size();
qDebug() << "size :" << firstSize;
if(firstSize == 5){
first1 = first[2];
first2 = first[3];
}..........(continue)
}
then you call that function for each and every item in your QList<QList<QString>>
QList<QList<QString> > myList
for(QList<QString> ls : myList){
myFunction(ls);
}
Seems I got a solution but no explication.
This test is passing everytime in release and debug...
function test_large_int_add0(data)
{
var act = 0xA5000000 + 0;
var exp = '2768240640';
compare(act.toString(), exp);
}
After some experimenting, the culprit was the MagnificationFilter. Although there were no problem setting the Magnification with QOpenGLTexture::NearestMipMapNearest with float images, with integer images, I had to set to QOpenGLTexture::Nearest.