[Qtce-preview-feedback] QTableView and setStretchLastSection problem
Jörg Bornemann
joerg.bornemann at trolltech.com
Wed Apr 9 12:50:52 CEST 2008
George H. Locktish wrote:
> When I call setStretchLastSection() on the horizontal header for my
> QTableView, the last column’s header view text is not displayed when the
> GUI is displayed. If I remove the call to setStretchLastSection() on
> the horizontal header, then the text for the last column is displayed.
> The other columns of the header view display without issue.
I just tried to reproduce your problem with the current Qt/WinCE 4.4.0
RC1 on Windows Mobile 5 with the following little program:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTableView* tv = new QTableView;
tv->setModel(new QDirModel(tv));
tv->horizontalHeader()->setStretchLastSection(true);
tv->show();
return a.exec();
}
All headers are displayed properly.
Which Qt/WinCE version and platform are you using?
Could you please provide a code sample which shows the problem?
Best Regards,
Jörg
More information about the Qtce-preview-feedback
mailing list