Results 1 to 4 of 4

Thread: how to group paint calls together ??

  1. #1

    Default how to group paint calls together ??

    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

  2. #2
    Join Date
    Sep 2008
    Location
    New York
    Posts
    90
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to group paint calls together ??

    Add a status indicator and use switch case in paintEvent.

  3. #3

    Default Re: how to group paint calls together ??

    hi thanks for the reply.Whats status Indicator??

  4. #4
    Join Date
    Sep 2008
    Location
    New York
    Posts
    90
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to group paint calls together ??

    Quote Originally Posted by tampstaffs View Post
    hi thanks for the reply.Whats status Indicator??
    just a parameter showing the status of your application.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.