Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [CLOSED] My Qt class and QTableWidget

    C++ Gurus
    2
    2
    1387
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tucnak last edited by

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

      1 Reply Last reply Reply Quote 0
      • E
        Eddy last edited by

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

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply Reply Quote 0
        • First post
          Last post