Results 1 to 5 of 5

Thread: Qt Draw fast png images

  1. #1
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default Qt Draw fast png images

    Hi All ;
    I am developing an embedded project for my graduate project. I have to use an image on my UI. But my systems processor is ARM9 and system have to be very fast so i doubt that what is the best solution , drawing this picture on UI or draw this image by QTs functions. Which is the best solution.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Draw fast png images

    Isnt your UI based on Qt ?
    Just try the image example on ur ARM device and see if it works fine...

  3. #3
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default Re: Qt Draw fast png images

    aamer4u,
    I already use Qt as G.U.I but I wonder that what is the fastest way to show an image draw by codes ("paint and draw functions") or draw as a image (".png,.jpeg.....")?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Draw fast png images

    It depends what you want to draw. But basically all drawing in Qt is double buffered, so if you draw with painter functions, it will get blitted to the framebuffer later anyway. This might reduce the benefit of not painting all pixels. I'd say in most situations blitting a ready image is faster.

  5. #5
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default Re: Qt Draw fast png images

    Dear Wysota,
    Thanks for your reply, but i wonder that now i am using my Qt on embedded development project .There is an Arm9 MC on my development board. Qt works very slow, because I show many png images in QLabels.When I change the pages (QStacked widgets), it takes too much time. I draw that images via QPaintEvent() function. Is it a good way to draw images via QPaintevent()?. How May I speed up drawing images? Are there any other faster ways drawing .png images in QLabels?

Similar Threads

  1. import large number of images
    By sriluyarlagadda in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2008, 10:26

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.