Qt Opengl
-
wrote on 9 Sept 2019, 15:41 last edited by
How i can develop flight instrument in qt with 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.
-
wrote on 10 Sept 2019, 03:32 last edited by
Thanks, can we integrate tarrin database in qt with opengl. Also, is there any open source tarrin database is available?```
-
Thanks, can we integrate tarrin database in qt with opengl. Also, is there any open source tarrin database is available?```
@mkss What is "tarrin database"?
-
wrote on 10 Sept 2019, 05:50 last edited by
Geographical information system.
-
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 -
wrote on 10 Sept 2019, 08:13 last edited by
Thanks sir, i think this will resolve my problem.
-
wrote on 17 Sept 2019, 10:46 last edited by
Hello,
How to change image of pushbutton (clicked option not pressed option) i.e image change with clicked option. -
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. -
wrote on 18 Sept 2019, 05:18 last edited by
Can we make tristate swich using push button? On , off and intermediate state.
-
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