{
Q_OBJECT
public:
~test(){}
private:
Ui::test ui;
};
class test: public QWidget
{
Q_OBJECT
public:
test(QWidget *parent = 0);
~test(){}
private:
Ui::test ui;
};
To copy to clipboard, switch view to plain text mode
{
ui.setupUi(this);
rt->setColumnCount(4);
rt->setRowCount(10);
rt->setRowHeight(0, 22);
rt->verticalHeader()->hide();
hv->addWidget(rt);
setLayout(hv);
}
test::teset(QWidget *parent) : QWidget(parent)
{
ui.setupUi(this);
QHBoxLayout* hv = new QHBoxLayout(this);
QTableWidget* rt = new QTableWidget(this);
rt->setColumnCount(4);
rt->setRowCount(10);
rt->setRowHeight(0, 22);
rt->verticalHeader()->hide();
hv->addWidget(rt);
setLayout(hv);
}
To copy to clipboard, switch view to plain text mode
Bookmarks