Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. [CLOSED] My Qt class and QTableWidget
QtWS25 Last Chance

[CLOSED] My Qt class and QTableWidget

Scheduled Pinned Locked Moved C++ Gurus
2 Posts 2 Posters 1.5k Views
  • 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 Offline
    T Offline
    tucnak
    wrote on last edited by
    #1

    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
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved