Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Need QT Project type suggestions for my app
Forum Updated to NodeBB v4.3 + New Features

Need QT Project type suggestions for my app

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 1.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.
  • AntoninoA Offline
    AntoninoA Offline
    Antonino
    wrote on last edited by
    #1

    Hi, this is my first post in the forum.

    I'm planning to create my first app with QT. I want to create an application that generates user defined top-down map. The user should be capable of drag and drop shapes representing areas and the application will generate walls based on the shape.

    With the help of the app the user will be able to create something like this: Example map #1 -- Example map #2

    My question is:
    Which QT project should I use ? Which one fit better? In order to draw the map, would it be better to use OpenGL or is there any level of abstraction directly provided by QT?

    Many thanks to all of you!

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

      Hi and welcome :)

      A map generator :) cool

      How big are these bitmaps?

      if not like 5000x5000, then QImage/pixmap might work fine and opengl would/might be overkill.

      I would make my own widget for this
      and implement paintEvent to draw the image + any text or what ever u drag to area.

      for drag and drop please see
      http://doc.qt.io/qt-5/dnd.html

      1 Reply Last reply
      0
      • AntoninoA Offline
        AntoninoA Offline
        Antonino
        wrote on last edited by
        #3

        Thank you a lot for the fast reply.

        What if I have to decorate this map? Let's say the user after walls are generated, wants to add decorations ( a table, a lamp, door, etc... ). Let's also say I want to add some light according to the wall position. Is still the QImage/pixmap worth a try in this case?

        mrjjM 1 Reply Last reply
        0
        • AntoninoA Antonino

          Thank you a lot for the fast reply.

          What if I have to decorate this map? Let's say the user after walls are generated, wants to add decorations ( a table, a lamp, door, etc... ). Let's also say I want to add some light according to the wall position. Is still the QImage/pixmap worth a try in this case?

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

          @Antonino
          hi
          if a lamb can just be a small bit map, then yes, using pixmaps for overlays would work too.

          If you want real lighting, then no, using bitmaps would be hard.
          But u can create the effect of light
          http://doc.qt.io/qt-5/qtwidgets-effects-lighting-example.html

          But real lighting is best done with opengl.

          so all depends on, what you need in editor.
          what features it needs.

          1 Reply Last reply
          1
          • AntoninoA Offline
            AntoninoA Offline
            Antonino
            wrote on last edited by
            #5

            Ok, I guess I will go for OpenGL so :)

            Last question, which QT project should I use? I would like to use QML and quick controls but they look more "mobile-app friendly". Am I wrong ?

            mrjjM 1 Reply Last reply
            0
            • AntoninoA Antonino

              Ok, I guess I will go for OpenGL so :)

              Last question, which QT project should I use? I would like to use QML and quick controls but they look more "mobile-app friendly". Am I wrong ?

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

              @Antonino
              Nope
              QML was ment for the mobile generation but also works
              in Desktop apps.
              So yes you can use that if you like.

              you could try QML to see if u like it
              https://qmlbook.github.io/

              1 Reply Last reply
              2

              • Login

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