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. What to use?
Forum Updated to NodeBB v4.3 + New Features

What to use?

Scheduled Pinned Locked Moved Game Development
6 Posts 4 Posters 2.4k Views 1 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
    mmcdon15
    wrote on last edited by
    #1

    I am not sure which to use. Do I want to go with a qt console application or qt quick application. I am trying to make an application where I can drag and drop in spheres or cubes from one panel to another.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      A console application cannot display draggable spheres and cubes :)

      I recommend Qt Quick.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qxoz
        wrote on last edited by
        #3

        Well, there are several ways to do this. You can use QWidgets, QGraphics or QML for that. I can't say what is better for you (not enough information about your project and your skills).
        "Drag and Drop Examples":http://qt-project.org/doc/qt-5/examples-draganddrop.html
        "Qt Quick Examples - Drag and Drop":http://qt-project.org/doc/qt-5/qtquick-draganddrop-example.html

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mmcdon15
          wrote on last edited by
          #4

          What I am trying to create is a level editor for a game I am making. I wanted to start off by making the core of the application the design field, and the base objects of spheres and cubes.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Ferobles92
            wrote on last edited by
            #5

            @mmcdon15
            I just started working on the SAME project, and I am using QWidgets. Qt 5.3 has the QWindow framework, which I understand as recommended if you are going to interface directly with OpenGL to render on a screen.

            To those of you who know Qt 5.3 better, is that a feasible approach? Would I still be able to drag objects drawn on the QWindow?

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              [quote author="Ferobles92" date="1403893158"]@mmcdon15
              I just started working on the SAME project, and I am using QWidgets. Qt 5.3 has the QWindow framework, which I understand as recommended if you are going to interface directly with OpenGL to render on a screen.

              To those of you who know Qt 5.3 better, is that a feasible approach? Would I still be able to drag objects drawn on the QWindow?[/quote]Hi, and welcome to the Qt Dev Net!

              If you want to write your own OpenGL rendering code, then yes QWindow is the best choice for displaying. Note that you will also need to implement low-level mouse handling for drag-and-drop support. See the "QWindow documentation":http://qt-project.org/doc/qt-5/qwindow.html and pay attention to functions like mousePressEvent().

              Still, I encourage you to read the links that qxoz posted to see if other solutions meet your needs. If you don't need to write custom OpenGL code, the others are easier than QWindow.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0

              • Login

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