[Kde-finance-apps] QObject subclass parameter QObject *
Puneet Goyal
puneetgoyal08 at gmail.com
Sat Aug 13 20:42:41 UTC 2011
On Sun, Aug 14, 2011 at 1:38 AM, Thomas Baumgart <thb at net-bembel.de> wrote:
> Hi Puneet Goyal,
>
> on Saturday 13 August 2011 21:13:10 you wrote:
>
> > Hi,
> > while creating an object of a class which is inheriting from QObject
> class,
> > we never pass the QObject paramater even though in its definition we do
> > declare it in parameter list
>
> Sure we (you) do:
>
> AlkInvoice::AlkInvoice(QObject *parent) :
> QObject(parent),
>
Here while declaring the constructor you passed the QObject* object
but while creating object you only call
AlkInvoice* alkinvoice =new AlkInvoice();
and not
AlkInvoice* alkinvoice =new AlkInvoice(qobject);
>
> parent is passed to the QObject ctor. Or do I not understand your question?
>
>
> > Please tell me why?
> >
> > and i dont know why but the mail to KDE finance list failed twice
>
> Did you receive an error mail? I am interested in it then.
>
> Yes
The error was as follows
Delivery to the following recipient failed permanently:
kde-finance-apps at kde.org
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient
domain. We recommend contacting the other email provider for further
information about the cause of this error. The error that the other server
returned was: 554 554 5.7.1 Mail has been rejected as SPAM (10.501) (state
18).
> --
>
> Regards
>
> Thomas Baumgart
>
> GPG-FP: E55E D592 F45F 116B 8429 4F99 9C59 DB40 B75D D3BA
> -------------------------------------------------------------
> God is real... unless declared an integer
> -------------------------------------------------------------
>
Regards,
Puneet
--
-----------------------------------------------------------------------
Puneet Goyal
Student of B. Tech. III Year (Software Engineering)
Delhi Technological University, Delhi
-----------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-finance-apps/attachments/20110814/2014cdb6/attachment.html>
More information about the Kde-finance-apps
mailing list