There is a problem in the program
in mainwindow.h
class input_events //: public MainWindow
{
typedef struct input ie;
public:
ie *l;
~input_events();
input_events();
void add_ie(ie *p);
};
class input_events //: public MainWindow
{
typedef struct input ie;
public:
ie *l;
~input_events();
input_events();
void add_ie(ie *p);
};
To copy to clipboard, switch view to plain text mode
in mainwindow.cpp
struct input
{
int id;
struct input * suiv;
};
typedef struct input ie;
struct input
{
int id;
struct input * suiv;
};
typedef struct input ie;
To copy to clipboard, switch view to plain text mode
And also
void MainWindow::print()
{
input_events * ptr_ie;
ie * ine;
for(ine=ptr_ie->l; ine; ine = ine->suiv)
{
ui->textBrowser->setText(ui->textBrowser->toPlainText() + resultString.setNum(ine->id) + " ");
}
}
void MainWindow::print()
{
input_events * ptr_ie;
ie * ine;
QString resultString = "";
for(ine=ptr_ie->l; ine; ine = ine->suiv)
{
ui->textBrowser->setText(ui->textBrowser->toPlainText() + resultString.setNum(ine->id) + " ");
}
}
To copy to clipboard, switch view to plain text mode
The problem is that does not print output in function print()
the program here <link to 3rd party site removed, use attachments instead>
Thank you for your time
Bookmarks