Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Qt Opengl

    Game Development
    5
    15
    1125
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mkss last edited by

      How i can develop flight instrument in qt with opengl. ```

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        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.html

        Then I would think about if QML would be an option if for mobile.

        1 Reply Last reply Reply Quote 3
        • M
          Mkss last edited by

          Thanks, can we integrate tarrin database in qt with opengl. Also, is there any open source tarrin database is available?```

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @Mkss last edited by

            @mkss What is "tarrin database"?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 3
            • M
              Mkss last edited by

              Geographical information system.

              1 Reply Last reply Reply Quote 0
              • mrjj
                mrjj Lifetime Qt Champion last edited by

                Hi
                if you mean sort of like this
                https://www.youtube.com/watch?v=7wxeB3yW2Y0

                Then 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

                1 Reply Last reply Reply Quote 4
                • M
                  Mkss last edited by

                  Thanks sir, i think this will resolve my problem.

                  1 Reply Last reply Reply Quote 0
                  • M
                    Mkss last edited by

                    Hello,
                    How to change image of pushbutton (clicked option not pressed option) i.e image change with clicked option.

                    mrjj 1 Reply Last reply Reply Quote 0
                    • mrjj
                      mrjj Lifetime Qt Champion @Mkss last edited by

                      @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?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        Mkss @mrjj last edited by

                        @mrjj
                        Hi
                        I want to make on/ off button. If i press on, button will remain in that state until i pressed again.

                        mrjj 1 Reply Last reply Reply Quote 0
                        • mrjj
                          mrjj Lifetime Qt Champion @Mkss last edited by

                          @mkss

                          Ok.
                          It can do that.
                          use
                          https://doc.qt.io//qt-5/qabstractbutton.html#checkable-prop
                          then button is like on/off

                          Then with stylesheet use the selectors
                          QPushButton {}
                          QPushButton:checked{}
                          to change images.

                          https://doc.qt.io/qt-5/stylesheet-reference.html

                          M 1 Reply Last reply Reply Quote 3
                          • M
                            Mkss @mrjj last edited by

                            @mrjj
                            Thanks its working now.

                            1 Reply Last reply Reply Quote 0
                            • M
                              Mkss last edited by

                              Can we make tristate swich using push button? On , off and intermediate state.

                              J.Hilk 1 Reply Last reply Reply Quote 0
                              • SGaist
                                SGaist Lifetime Qt Champion last edited by

                                Hi,

                                AFAIR, no. What would be your use case ?

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply Reply Quote 1
                                • J.Hilk
                                  J.Hilk Moderators @Mkss last edited by

                                  @mkss QCheckBox has a build in try state functionality

                                  https://doc.qt.io/qt-5/qcheckbox.html

                                  if that helps

                                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


                                  Q: What's that?
                                  A: It's blue light.
                                  Q: What does it do?
                                  A: It turns blue.

                                  1 Reply Last reply Reply Quote 1
                                  • First post
                                    Last post