WTableView rows not visible under Firefox/Internet Explorer
Added by Oto Magaldadze over 13 years ago
this is my code:
view = new WTableView(root());
model = new WStandardItemModel;
int x = --1;
while (x < 5) {
model->insertColumn(x);
model->insertRow(x);
model->setHeaderData(x, Wt::Horizontal, QString(QString::number(x)+\" Header").toStdString());
}
x = --1;
int r = --1;
while (r < model->rowCount()) {
x = --1;
while (x < model->columnCount()) {
model~~setData(model~~>index(r,x), QString(QString::number(x)+";\"+QString::number®).toStdString());
}
}
view->setModel(model);
root()->addWidget(view);
and you can check out in attached shots that firefox can't display the table (only header row). Chrome works ok.
chromium.png (29.2 KB) chromium.png | table is visible as supposed | ||
firefox.png (20.7 KB) firefox.png | table not fully visible |
Replies (1)
RE: WTableView rows not visible under Firefox/Internet Explorer - Added by Wim Dumon over 13 years ago
Hello Oto,
Does it work if you give your tableview an explicit size?
Regards,
Wim.