I have a table with the following schema
- Code: Select all
CREATE TABLE brand (image_id TEXT, id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, uuid TEXT, name TEXT, created_at TEXT, updated_at TEXT)
When creating my model I used the following code:
- Code: Select all
p_model = new BrandModel(this);
p_model->setListOfColumns(QStringList() << "id" << "name");
p_model->qxFetchAll();
When I run my app, I noticed that the column name is not filled with data, only the column ID.
If I change the second line of method setListOfColumns with the following code:
- Code: Select all
p_model->setListOfColumns(QStringList() << "name" << "id");
The model retrieve all columns and everything works just fine.
Is that a bug (the order requirement) or is the expected behaviour?