you are right. I am not sure what exactly the problem was, but removing all the designer stuff makes it work.
Essentially we end up with this:
class abc : public QWidget
{
public:
abc(QWidget* p = 0) : QWidget(p)
{
QHBoxLayout* lay = new QHBoxLayout(this);
QTableWidget* tw = new QTableWidget();
tw->setColumnCount(8);
tw->setRowCount(20);
lay->addWidget(tw);
setLayout(lay);
}
};
and that works fine. thanks for your help!




Reply With Quote



Bookmarks