GUI implementation question
Hi. Im making a custom GUI system and I was wondering what is the better design strategy.
Example A: Having tight control over when an object is added to a container.
Container a = new Container();
Component b = new Component();
a.add(b);
or
Example B: Declaring the parent container on initialization.
Container a = new Container();
Component b = new Component(a);
Most high level GUI systems follow example A. Is there a reason for this or does it even matter? I prefer example B less code when creating a GUI. What do you think?
I suppose. This may be a dumb question but keep im mind thats why I posted in the beginers forums but what is QT short for?
Alright, your examples just looked like QT code syntax :)
QT is not mostly used under Linux though, it's made to be a really portable GUI development kit, I currently use it to make my applications work under Linux too.
QT is not mostly used under Linux though, it's made to be a really portable GUI development kit, I currently use it to make my applications work under Linux too.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement