#include "mainwindow.h" #include //#include "WDMTMKv2.cpp" int hTmk; MainWindow::MainWindow() { init_mainwindowobj(); init_connections(); } void MainWindow::init_mainwindowobj() { qDebug() << "Startyem"; Window = new QWidget; Button = new QPushButton("Start"); Label = new QLabel("Test"); QVBoxLayout *layout = new QVBoxLayout(Window); layout->addWidget(Label); layout->addWidget(Button); Window->setLayout(layout); setCentralWidget(Window); } void MainWindow::init_connections() { connect(Button, SIGNAL(clicked()), this, SLOT(test_tmkopen())); } void MainWindow::test_tmkopen() { /*if(TmkOpen()) Label->setText("TmkOpen() failed"); else Label->setText("TmkOpen() successful!"); qDebug() << tmkgetmaxn(); qDebug() << mrtgetmaxn(); hTmk = 0; if (tmkconfig(hTmk) != 0) qDebug() << "tmkconfig() failed!"; else qDebug() << "tmkconfig() successful!"; TmkClose();*/ } MainWindow::~MainWindow() { qDebug() << "End"; }