[Qt-interest] problem with closeEvent

Benjamin Sonnemann b.sonnemann at gmail.com
Tue Mar 10 10:38:38 CET 2009


Well, in C++ you can declare a class name without implemention details as
long as you refer to
it as a pointer and not use any member functions.
i.e in this case:

you can do sth like this:

class Foo;
class Bar{
   doSthWithFoo(Foo* foo);
}

as a pointer is always the same size (platform wise) the compiler knows what
to do there,
as its principal passing in a long int.

Benjamin Sonnemann


On Tue, Mar 10, 2009 at 7:49 AM, Knapp <magick.crow at gmail.com> wrote:

> > Try #including <QCloseEvent>
>
> Thanks Mr Brewster and Mr Sonnemann. It now works but I don't
> understand why. The examples don't have that include and as far as I
> can tell it should be included by any of the other includes.
>
> http://doc.trolltech.com/4.5/mainwindows-application.html
>
> http://doc.trolltech.com/4.5/qwidget.html#closeEvent
>
> --
> Douglas E Knapp
>
> Why do we live?
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090310/7fdc543e/attachment.html 


More information about the Qt-interest-old mailing list