[Qt-interest] QTableView - two questions

rfl brak at brak.pl
Wed Nov 4 22:05:47 CET 2009


Hi

I have two questions about QTableView.

1. Some columns in my QTableView are right aligned and for those column
selection works wrong when editing cell (I have created my own
ItemDelegate to handle alignment in edited cell). When I click on the
left side of the cell (where there is no text) it selects text just like
the cell is left aligned.

Example:
-------------------
|        some text|
-------------------
         ^^^
        selection here
   ^
click here

2. How to force setData to model in open editor in QTableView when I
sumbit model? Now I have to go to another cell and then submit model.

Regards




More information about the Qt-interest-old mailing list