testing v1
This commit is contained in:
61
mainwindow.cpp
Normal file
61
mainwindow.cpp
Normal file
@@ -0,0 +1,61 @@
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <stdio.h>
|
||||
//#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";
|
||||
}
|
Reference in New Issue
Block a user