Re: [Interest] QTableView column format

2014-01-29 Thread Muhammad Bashir Al-Noimi
On 01/25/2014 11:54 AM, Andre Somers wrote: Your delegate is dealing with the editor, but not with the display. Try reimplementing the displayText method. Also, check if the data type you get from the database really is numerical. SQLite can be weird with data types in my experience. I tried

Re: [Interest] QTableView column format

2014-01-29 Thread Muhammad Bashir Al-Noimi
On 01/25/2014 11:54 AM, Andre Somers wrote: Your delegate is dealing with the editor, but not with the display. Try reimplementing the displayText method. Also, check if the data type you get from the database really is numerical. SQLite can be weird with data types in my experience. Ignore

Re: [Interest] QTableView column format

2014-01-25 Thread Muhammad Bashir Al-Noimi
On 01/22/2014 10:24 AM, André Somers wrote: If you want to modify it at the 'view' end, you should use a QStyledItemDelegate subclass and install that on the view, or on a specific column of the view. I did that exactly but unfortunately it didn't work :( May you please tell me what's wrong?!

Re: [Interest] QTableView column format

2014-01-25 Thread Andre Somers
Muhammad Bashir Al-Noimi schreef op 25-1-2014 12:13: On 01/22/2014 10:24 AM, André Somers wrote: If you want to modify it at the 'view' end, you should use a QStyledItemDelegate subclass and install that on the view, or on a specific column of the view. I did that exactly but unfortunately it

Re: [Interest] QTableView column format

2014-01-22 Thread André Somers
Muhammad Bashir Al-Noimi schreef op 21-1-2014 18:22: Howdy, I'm using QTableView in very basic mode to view a QSqlTableModel but one of numeric column shows the numbers using 'e' factor while they should be in digits only '100' How can I change the format of specific column

[Interest] QTableView column format

2014-01-21 Thread Muhammad Bashir Al-Noimi
Howdy, I'm using QTableView in very basic mode to view a QSqlTableModel but one of numeric column shows the numbers using 'e' factor while they should be in digits only '100' How can I change the format of specific column without subclassing QTableView? Can I change the format