[Interest] is there any way to avoid compression of event

2012-03-20 Thread Efan...
Hi there,

Qt does this mouse move event compression, I can imagine it is good but in
one of my application where user is doing some kind of drawing with mouse
we dont want this compression of mouse move event take place, is there any
way I can avoid this?

I see QCoreApplication::compressEvent() is virtual function can I use this?
if yes can any one please guide how?

regards,

Harris
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] is there any way to avoid compression of event

2012-03-20 Thread Efan...
If I subclass coreapplication and reimplement compressEvent, how do I use
this class in my GUI application which already has QApplication object ?

any help will be appreciated.

On Tue, Mar 20, 2012 at 3:48 PM, Efan...  wrote:

> Hi there,
>
> Qt does this mouse move event compression, I can imagine it is good but in
> one of my application where user is doing some kind of drawing with mouse
> we dont want this compression of mouse move event take place, is there any
> way I can avoid this?
>
> I see QCoreApplication::compressEvent() is virtual function can I use
> this? if yes can any one please guide how?
>
> regards,
>
> Harris
>



-- 
Efan Harris
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] is there any way to avoid compression of event

2012-03-20 Thread Efan...
You mean I should use an object of myCoreApplication rathe QCoreApplication,

But documentation says for GUI application one will have to use
QApplication and for non gui Qcoreapplication.
So if i use subclass of qcoreapplication wont this create any problem in my
GUI.
Documentation further says coreapplication class handles eventloop for
console application and qapplication class for GUI aplication.

Please help

On Tue, Mar 20, 2012 at 3:58 PM, Thiago Macieira
wrote:

> On terça-feira, 20 de março de 2012 15.50.13, Efan... wrote:
> > If I subclass coreapplication and reimplement compressEvent, how do I use
> > this class in my GUI application which already has QApplication object ?
>
> Replace the QApplication that your application uses.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> Intel Sweden AB - Registration Number: 556189-6027
> Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


-- 
Efan Harris
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] is there any way to avoid compression of event

2012-03-20 Thread Efan...
that is the problem it is not virtual in QApplication it is virtual in
QCoreApplicatoin


On Tue, Mar 20, 2012 at 4:24 PM, Thiago Macieira
wrote:

> On terça-feira, 20 de março de 2012 16.04.49, Efan... wrote:
> > You mean I should use an object of myCoreApplication rathe
> QCoreApplication,
> >
> > But documentation says for GUI application one will have to use
> > QApplication and for non gui Qcoreapplication.
> > So if i use subclass of qcoreapplication wont this create any problem in
> my
> > GUI.
> > Documentation further says coreapplication class handles eventloop for
> > console application and qapplication class for GUI aplication.
> >
> > Please help
>
> You shouldn't derive from QCoreApplication. You should derive from
> QApplication.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> Intel Sweden AB - Registration Number: 556189-6027
> Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


-- 
Efan Harris
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] is there any way to avoid compression of event

2012-03-20 Thread Efan...
I rechecked it, it is not public function and not mentioned in
documentation, I found it in .h file it is protected member in
QApplication.h but not Virtual :( though I see it is virtual in
qcoreapplication.h

On Tue, Mar 20, 2012 at 4:27 PM, Efan...  wrote:

> that is the problem it is not virtual in QApplication it is virtual in
> QCoreApplicatoin
>
>
> On Tue, Mar 20, 2012 at 4:24 PM, Thiago Macieira <
> thiago.macie...@intel.com> wrote:
>
>> On terça-feira, 20 de março de 2012 16.04.49, Efan... wrote:
>> > You mean I should use an object of myCoreApplication rathe
>> QCoreApplication,
>> >
>> > But documentation says for GUI application one will have to use
>> > QApplication and for non gui Qcoreapplication.
>> > So if i use subclass of qcoreapplication wont this create any problem
>> in my
>> > GUI.
>> > Documentation further says coreapplication class handles eventloop for
>> > console application and qapplication class for GUI aplication.
>> >
>> > Please help
>>
>> You shouldn't derive from QCoreApplication. You should derive from
>> QApplication.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>  Software Architect - Intel Open Source Technology Center
>> Intel Sweden AB - Registration Number: 556189-6027
>> Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>>
>
>
> --
> Efan Harris
>



-- 
Efan Harris
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest