I ended up creating a plugin to call repaint() on the declarative view
but nothing seemed to work until I called qApp->processEvents(), not
sure if that is safe to rely on.

I have another layer that will be displayed on top of my program, I
need to apply a chroma key to my program and make sure it is painted
to the screen before I call an external program to process and apply
the transparency.

Thanks,
Mike

On Mon, Aug 23, 2010 at 4:19 PM,  <[email protected]> wrote:
> The closest I can think of is calling repaint() on the QDeclarativeView. That 
> will guarantee that the paintEvent has completed, but not that the screen has 
> been updated. Can you say any more about what you are trying to achieve 
> (maybe a workaround or alternative method would be possible)?
>
> Regards,
> Michael
>
> On 20/08/2010, at 8:11 AM, ext Michael Dippold wrote:
>
>> Is there any way from within qml to force a repaint to occur? In my
>> application I need to be sure the screen painting has been done before
>> I call an external command.
>>
>> Thanks,
>> Mike
>> _______________________________________________
>> Qt-qml mailing list
>> [email protected]
>> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>
> _______________________________________________
> Qt-qml mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to