PDA

View Full Version : how to group paint calls together ??



tampstaffs
26th February 2009, 15:03
Hi,

I am trying to do this:

I am creating 10 graphics items and placing it in graphics view.
Problem is that each time a item is added its getting a paint call which results in whole screen refresh,which would mean like 10 times for 10 items added.Is there any way I could do such that I could control those paint calls to those items so that I can add all those items to screen and in one paint call draw there content

Sheng
26th February 2009, 15:12
Add a status indicator and use switch case in paintEvent.

tampstaffs
26th February 2009, 16:30
hi thanks for the reply.Whats status Indicator??

Sheng
26th February 2009, 16:35
hi thanks for the reply.Whats status Indicator??

just a parameter showing the status of your application.