[CLOSED] My Qt class and QTableWidget



  • 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(.


  • Moderators

    Please don't double post.
    Closing this one because the other one is in the general forum and not strictly c++ related.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.