[Kstars-devel] KDE/kdeedu/kstars/kstars/tools

Jasem Mutlaq mutlaqja at ikarustech.com
Fri Mar 17 17:00:07 CET 2006


> I simply changed the first line to "setupUi(this);".
>  The argument to 
> setupUi(QWidget*) must be the derived widget itself,
> *not* the parent 
> of that widget.  This problem exists elsewhere in
> the code; I'm going to 
> fix that next.
> 
> I suspect this is the same issue Jasem was having
> with layouts of the 
> Details window a while ago.

Exactly. In case the problem didn't crash KStars, the
widget layout will be missed up. My solution to this
is either to:

1. Use the UI class directly in the container widget
(i.e. it doesn't inherit from QFrame).

2. Let the UI widget inherit from QObject in case I
wanted the class to perform more UI-specfic tasks that
I'd like to seperate from the container class.

Cheers,
Jasem



More information about the Kstars-devel mailing list