N
nass
hello everyone,
i have a mainForm, that is run basically from main.cpp.
then i also have a childForm, that gets instanciated from within a
function in mainForm. basically:
#include "childrenforms.h"
//etcetc
class childrenForms;
//etcetc
childrenForms *childForm;
//etcetc
mainForm::showChildForm()
{
childForm = new childrenForm(..);
childForm.show(); //to prepare the form for showing on screen
childForm.exec(); //to run it
}
so far so good... however the mainForm also has a writeToFile()
function..
mainForm::writeToFile() {....}
i need to make this visible to the childForm...
so that i can basically somehow run the mainForm->writeToFile()
function by calling it from within the childForm.
how can i do that?
thank you for your help
nass
i have a mainForm, that is run basically from main.cpp.
then i also have a childForm, that gets instanciated from within a
function in mainForm. basically:
#include "childrenforms.h"
//etcetc
class childrenForms;
//etcetc
childrenForms *childForm;
//etcetc
mainForm::showChildForm()
{
childForm = new childrenForm(..);
childForm.show(); //to prepare the form for showing on screen
childForm.exec(); //to run it
}
so far so good... however the mainForm also has a writeToFile()
function..
mainForm::writeToFile() {....}
i need to make this visible to the childForm...
so that i can basically somehow run the mainForm->writeToFile()
function by calling it from within the childForm.
how can i do that?
thank you for your help
nass