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.8k 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.
  • M Offline
    M Offline
    mrjj
    Lifetime Qt Champion
    wrote on 9 Sept 2019, 16:24 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 10 Sept 2019, 03:32 last edited by
      #3

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

      J 1 Reply Last reply 10 Sept 2019, 04:15
      0
      • M Mkss
        10 Sept 2019, 03:32

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

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 10 Sept 2019, 04:15 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 10 Sept 2019, 05:50 last edited by
          #5

          Geographical information system.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 10 Sept 2019, 06:17 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 10 Sept 2019, 08:13 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 17 Sept 2019, 10:46 last edited by
                #8

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

                M 1 Reply Last reply 17 Sept 2019, 11:55
                0
                • M Mkss
                  17 Sept 2019, 10:46

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

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 17 Sept 2019, 11:55 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 17 Sept 2019, 13:14
                  0
                  • M mrjj
                    17 Sept 2019, 11:55

                    @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 17 Sept 2019, 13:14 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.

                    M 1 Reply Last reply 17 Sept 2019, 18:15
                    0
                    • M Mkss
                      17 Sept 2019, 13:14

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

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 17 Sept 2019, 18:15 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 18 Sept 2019, 02:42
                      3
                      • M mrjj
                        17 Sept 2019, 18:15

                        @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 18 Sept 2019, 02:42 last edited by
                        #12

                        @mrjj
                        Thanks its working now.

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Mkss
                          wrote on 18 Sept 2019, 05:18 last edited by
                          #13

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

                          J.HilkJ 1 Reply Last reply 18 Sept 2019, 06:37
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 18 Sept 2019, 06:31 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
                              18 Sept 2019, 05:18

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

                              J.HilkJ Offline
                              J.HilkJ Offline
                              J.Hilk
                              Moderators
                              wrote on 18 Sept 2019, 06:37 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