Images
Images are very important for making your app more interesting.
In Vue NodeGui, <vn-image>
is used to display an image.
Internally Image is a QLabel. QLabel is typically used for displaying text, but it can also display an image.
What this means is that you can pass all the props you pass to a <vn-text>
to <vn-image>
also.
#
ExampleLet's take a simple example of displaying your logo in the app:
The code for this would look as below:
#
Animated imagesFor animated images, the widget vn-animated-image
is still under construction.
#
Loading an image from a bufferLets say we want to load an image from a buffer. In this case we can't use the src
prop since its only reserved for local file system path or urls.
In this case use the buffer
prop.