Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Qt Opengl
Forum Updated to NodeBB v4.3 + New Features

Qt Opengl

Scheduled Pinned Locked Moved Solved Game Development
15 Posts 5 Posters 2.4k Views 2 Watching
  • 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #2

    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
    3
    • M Offline
      M Offline
      Mkss
      wrote on last edited by
      #3

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

      jsulmJ 1 Reply Last reply
      0
      • M Mkss

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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @mkss What is "tarrin database"?

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

        1 Reply Last reply
        3
        • M Offline
          M Offline
          Mkss
          wrote on last edited by
          #5

          Geographical information system.

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #6

            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
            4
            • M Offline
              M Offline
              Mkss
              wrote on last edited by
              #7

              Thanks sir, i think this will resolve my problem.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mkss
                wrote on last edited by
                #8

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

                mrjjM 1 Reply Last reply
                0
                • M Mkss

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

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  @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
                  0
                  • mrjjM mrjj

                    @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 Offline
                    M Offline
                    Mkss
                    wrote on last edited by
                    #10

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

                    mrjjM 1 Reply Last reply
                    0
                    • M Mkss

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

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @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
                      3
                      • mrjjM mrjj

                        @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 Offline
                        M Offline
                        Mkss
                        wrote on last edited by
                        #12

                        @mrjj
                        Thanks its working now.

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Mkss
                          wrote on last edited by
                          #13

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

                          J.HilkJ 1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            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
                            1
                            • M Mkss

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

                              J.HilkJ Offline
                              J.HilkJ Offline
                              J.Hilk
                              Moderators
                              wrote on last edited by
                              #15

                              @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


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

                              1 Reply Last reply
                              1

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved