Whats up with KDialog?

Andreas Pakulat apaku at gmx.de
Wed Aug 1 11:03:31 BST 2007


Hi,

I'd like to know why KDialog differs so much from QDialog? Its currently
impossible to use KDialog with Qt Designer, even though it is included
in the custom widgets plugin.

If one replaces QDialog with KDialog in the template for a dialog and
creates a dialog you'll get a form with ok+cancel button on the right in
the vertical middle. You can't set a layout on the dialog and you also
can't properly add any widgets to it. This seems wrong, or it is
actually wanted and the example in the KDialog apidox is the only way to
use it (i.e. using its setMainWidget function. If the latter is the case
IMHO it shouldn't be part of the custom widget plugin and it shouldn't
be possible to use it as base class for a form.

In the case that KDialog is not supposed to be subclassed like and used
as direct replacement of QDialog, the krazy check for s/QFoo/KFoo should
also be changed to not require to use KDialog when QDialog is used in
sources. IMHO.

Andreas

-- 
You are destined to become the commandant of the fighting men of the
department of transportation.




More information about the kde-core-devel mailing list