[CLOSED] My Qt class and QTableWidget
Locked
C++ Gurus
-
I am writing special "QTemplate" class which have to modify my QTableWidget from UI.
mainwindow.cpp (in constructor)
@term = new QTemplate(*ui->templates);@qtemplate.h
@class QTemplate : public QObject
{
Q_OBJECT
public:
explicit QTemplate(QTableWidget &wgt, QObject *parent = 0);@qtemplate.cpp
@QTemplate::QTemplate(QTableWidget &wgt, QObject *parent) :
QObject(parent)
{
table = &wgt;
timer = new QTimer(this);
connect(this,SIGNAL(started()),this,SLOT(placeCells()));
connect(this,SIGNAL(painted()),this,SLOT(wait()));
}@Program crashes on constructor of QTemplate(.