Qt Opengl
-
Hi
if you mean sort of like this
https://www.youtube.com/watch?v=7wxeB3yW2Y0Then yes, its possible
but as far as i know, Qt do not have special support for it so you would have to program it yourself.There are many sources of such data
https://github.com/openterrain/openterrain/wiki/Terrain-Data -
@mkss
Hi
why can't you use the pressed state?
When left mouse is held down, it will show the image. when released, it
will revert to the first one.There is no state for "clicked"
and since a click is mouse press event and a release event, i don't understand
why pressed, is not usable for you? -
Ok.
It can do that.
use
https://doc.qt.io//qt-5/qabstractbutton.html#checkable-prop
then button is like on/offThen with stylesheet use the selectors
QPushButton {}
QPushButton:checked{}
to change images. -
Hi,
AFAIR, no. What would be your use case ?
-
@mkss QCheckBox has a build in try state functionality
https://doc.qt.io/qt-5/qcheckbox.html
if that helps