Hi,
QUESTION #1
Header:
QPushButton *pbArray[3][3];
CPP:
pbArray[3][3] = new QPushButton(this);
How can I check if I've already put a QPushButton into an array as I just did in the cpp file (pbArray[3][3] = new QPushButton(this)?
I need to know because IF then I would loop and delete (deconstruktor) all objects (GUIs) in order to remove them from the screen.
QUESTION #2
Is there a better way to remove GUI objects/widgets in C++ from the parent widget than looping end 'deconstruct'?
QUESTION #1
Header:
QPushButton *pbArray[3][3];
CPP:
pbArray[3][3] = new QPushButton(this);
How can I check if I've already put a QPushButton into an array as I just did in the cpp file (pbArray[3][3] = new QPushButton(this)?
I need to know because IF then I would loop and delete (deconstruktor) all objects (GUIs) in order to remove them from the screen.
QUESTION #2
Is there a better way to remove GUI objects/widgets in C++ from the parent widget than looping end 'deconstruct'?