A
A
Alexander Sharomet2014-11-18 16:54:29
Programming
Alexander Sharomet, 2014-11-18 16:54:29

How to programmatically add an image to a form in QT Creator?

Hello.
How can I programmatically add a picture to the form in QT Creator, for example, by clicking a button.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TriKrista, 2014-11-18
@sharomet

Add a QLabel to the form.
And add a picture to QLabel: QLabel::setPicture ( const QPicture & picture )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question