[Qt-interest] QTableView small glitch repainting some characters

Diego Schulz dschulz at gmail.com
Fri Apr 17 15:27:59 CEST 2009


On Thu, Apr 16, 2009 at 10:39 AM, Diego Schulz <dschulz at gmail.com> wrote:
> Hi all,
>
> I'm using QTableView to display data obtained with QSqlQueryModel,
> querying a single table from a QPSQL (PostgreSQL) database.
> The PostgreSQL database is has UTF-8 encoding, an so the entire
> environment (Ubuntu 9.04, using Qt 4.5.0 opensource ed).
>
> When I resize the program's window some strings in the QTableView
> widget doesn't get repainted correctly. I've made a small capture (a
> low quality gif image) so you can see what I'm trying to describe
> here.
> Please take a look:
> http://i40.tinypic.com/331oao3.gif
>
> I think the code isn't worth posting because I can reproduce the
> behavior with even the smallest QTableView / QSqlQueryModel example.
>
> Does this issue has something to do with QPSQL driver or is it QTableView?
>
> Thanks for any clue on how to solve this,
>
> diego
>

I can't seem to reproduce the "effect" using QSQLITE driver, under
exactly the same conditions, so I think it might be an encoding
problem.

After the connection gets established, the client part reports the
encoding as UNICODE.

Apparently there are no tickets in the bugs database related to this
annoying glitch.

Clues anyone?



More information about the Qt-interest-old mailing list