[Development] Newly created QEvent returns isAccepted() as true

Arunprasad Rajkumar ararunprasad at gmail.com
Wed Mar 13 09:26:44 CET 2013


Dear Qt Dev. List,

Why newly created QEvent returns isAccepted() as *true*?

I saw the constructor,

QEvent::QEvent(Type type)
    : d(0), t(type), posted(false), spont(false), *m_accept(true)*
{}

But I most of the system does the opposite, that means the default value of
accepted/consumed will be false just after its creation. Is there any
reason behind this?

-- 
*Arunprasad Rajkumar*
http://in.linkedin.com/in/ararunprasad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130313/0b4a400a/attachment.html>


More information about the Development mailing list