My UI is defined like this
mainwindow.h
#include <QMainWindow>
#include "ui_mainwindow.h"
#include "main_print_functions.h"
class MainWindow
: public QMainWindow,
public Ui
::MainWindow { Q_OBJECT
public:
MainWindow();
.
.
.
};
#include <QMainWindow>
#include "ui_mainwindow.h"
#include "main_print_functions.h"
class MainWindow : public QMainWindow, public Ui::MainWindow {
Q_OBJECT
public:
MainWindow();
.
.
.
};
To copy to clipboard, switch view to plain text mode
So how can I access the components in main_print_functions class?
This doesn't work:
MainWindow gui;
gui.checkBox->isChecked()
MainWindow gui;
gui.checkBox->isChecked()
To copy to clipboard, switch view to plain text mode
Can you post a piece of code that shows me how to do this?
Bookmarks