QFont error
-
I have a tableview in which I import data model from database. (I have my own data model class that I subclass QSqlQuery.)
If I call this model with 5 rows with a query, it does not give a warning message.
However, if I call more than 5 records, it gives the following warning. So why ? I don't do anything with QFont.model->setQuery(select * from users LIMIT 5 ) // no warning model->setQuery(select * from users LIMIT 10) // warning..its gives:
QFont::fromString: Invalid description '(empty)' -
Hi,
Can you share the implementation of your custom model ?
Are you using the number 5 somewhere ?
Do you get empty values with your query limited to ten results ? -
Good !
Then please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found.