Qt Opengl
-
Hi
The first step would be to learn openGL.
https://learnopengl.com/Then check out Qt samples
https://doc.qt.io/qt-5/examples-widgets-opengl.htmlThen I would think about if QML would be an option if for mobile.
-
Thanks, can we integrate tarrin database in qt with opengl. Also, is there any open source tarrin database is available?```
-
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 -
Hello,
How to change image of pushbutton (clicked option not pressed option) i.e image change with clicked option.@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? -
@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? -
@mrjj
Hi
I want to make on/ off button. If i press on, button will remain in that state until i pressed again.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. -
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