Qt World Summit: Submit your Presentation

Recommended PNG display method

  • There are a few different ways I could do this. It is fairly easy to use pixmap widget and push to a label field.

    What might others suggest?

  • Totally depends on what your application is. Is it a graphics editor? Is the PNG just some static company logo on the info screen? ...

  • Good question. I know there are some pretty advanced class types like animation but I want to know what the best practice would be for something like a company logo. It seems like using the QPixmap and bliting it to the screen in a label field is easiest but is it the most efficient.

  • Displaying a company logo statically somewhere on your form is irrelevant regarding performance. Any method is fine, so chose the easiest one. QLabel with a pixmap.

  • Thank you for the advice.

Log in to reply