Answer the question
In order to leave comments, you need to log in
Because of what data from the parent window are not transferred to the child?
Good day!
Actually here:
"dialog_EditingTheClippingPlane" - child form;
"ControlWin" - Parent form;
Declaration of the "SetDate" method in the "dialog_EditingTheClippingPlane" class.
void SetDate(QString x, QString y, QString z, QString name);
void dialog_EditingTheClippingPlane::SetDate(QString x, QString y, QString z, QString name)
{
//Line Edit
ui->le_X->setText(x);
ui->le_Y->setText(y);
ui->le_Z->setText(z);
ui->le_Name->setText(name);
}
void ControlWin::on_tree_ClippingPlanes_itemClicked(QTreeWidgetItem *item, int column)
{
dialog_EditingTheClippingPlane dl_EditingTheClippingPlane;
if(dl_EditingTheClippingPlane.exec())
{
dl_EditingTheClippingPlane.SetDate(
"0",
"0",
"0",
"Name");
}
}
Answer the question
In order to leave comments, you need to log in
void ControlWin::on_tree_ClippingPlanes_itemClicked(QTreeWidgetItem *item, int column)
{
dialog_EditingTheClippingPlane* dl_EditingTheClippingPlane = new dialog_EditingTheClippingPlane();
dl_EditingTheClippingPlane->SetDate(
"0",
"0",
"0",
"Name");
if(dl_EditingTheClippingPlane.exec() == ...)
{
//...
}
delete dl_EditingTheClippingPlane;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question