[Kde-finance-apps] QObject subclass parameter QObject *

Thomas Baumgart thb at net-bembel.de
Sat Aug 13 20:54:45 UTC 2011


Hi,

on Saturday 13 August 2011 22:42:41 Puneet Goyal wrote:

> 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);


In that case it simply has no parent. The default 0 will be used.



> > 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).

I know why I don't use google for mail exchange ;)

-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
If a train station is where a train stops,
then what stops at a workstation?
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-finance-apps/attachments/20110813/ddaa866e/attachment.sig>


More information about the Kde-finance-apps mailing list