And if i want this working the opposite direction?
Let's say i want that objects created from class a get some data from de base class.
This is a constructor issue ... isn'it?
#include "a.h"
#include "ui_a.h"
m_ui(new Ui::a)
{
m_ui->setupUi(this);
m_ui->label.setText("data from the calling dialog!?!");
}
#include "a.h"
#include "ui_a.h"
a::a(QWidget *parent) :
QDialog(parent),
m_ui(new Ui::a)
{
m_ui->setupUi(this);
m_ui->label.setText("data from the calling dialog!?!");
}
To copy to clipboard, switch view to plain text mode
Bookmarks