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. Dentist here. Trying to write a dental software. Some tips?
Forum Updated to NodeBB v4.3 + New Features

Dentist here. Trying to write a dental software. Some tips?

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 2 Posters 948 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.
  • H Offline
    H Offline
    Hristo Konstantinov
    wrote on last edited by
    #5

    Numbers are just numbers. They can be anywhere. They can be even a non-selectable item. The images of the teeth are important.

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

      Hi
      There is also
      https://doc.qt.io/qt-5/graphicsview.html

      that can do many things you need but not sure if its overkill.

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

        Hi
        I think ListWidget with vievMode set to icon mode will work good.

        What types of other interactions do you need besides, select, select more than one.

        btw tab and shift tab is used for keyboard navigation and will jump out of the list.
        Does it has to be those keys ? that is very non standard :)

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hristo Konstantinov
          wrote on last edited by Hristo Konstantinov
          #8

          Since this is just a project, which helps me learn programming, I don't mind being an overkill :P As for the tab - not necessarily, it might be selectable with the arrow keys, and arrow keys with shift for multiselection. Selection rectangle implementation might be problematic, but if done right it can be VERY useful. Also context menu on right clicking each of the teeth would be nice :)

          mrjjM 1 Reply Last reply
          0
          • H Hristo Konstantinov

            Since this is just a project, which helps me learn programming, I don't mind being an overkill :P As for the tab - not necessarily, it might be selectable with the arrow keys, and arrow keys with shift for multiselection. Selection rectangle implementation might be problematic, but if done right it can be VERY useful. Also context menu on right clicking each of the teeth would be nice :)

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

            @Hristo-Konstantinov
            Hi
            graphics framework work is very powerful and also supports panning /zoom etc so if that could be useful it might be
            ok idea,
            Try out
            https://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html
            (its in Creator)
            and see what you think. you can insert images etc and its full objects but has a higher learning curve that the listWidget idea.

            1 Reply Last reply
            2
            • H Offline
              H Offline
              Hristo Konstantinov
              wrote on last edited by
              #10

              GraphicsView actually looks PRETTY good. An option to have a caries or obturation texture as a sprite and layering it over the tooth would be very nice, instead of having 100 textures for each possible status of one tooth. Again - if dentistry has taught me something, it is that the quickest and lazy solution to a complicated problem is almost never the most optimal one.

              mrjjM 1 Reply Last reply
              1
              • H Hristo Konstantinov

                GraphicsView actually looks PRETTY good. An option to have a caries or obturation texture as a sprite and layering it over the tooth would be very nice, instead of having 100 textures for each possible status of one tooth. Again - if dentistry has taught me something, it is that the quickest and lazy solution to a complicated problem is almost never the most optimal one.

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

                @Hristo-Konstantinov
                Also it can draw thousand items with no issues so you can other info if you wish.
                It also supports grouping etc.
                You can also make custom items that you draw with QPainter so it can be anything you like.

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

                  @Hristo-Konstantinov said in Dentist here. Trying to write a dental software. Some tips?:

                  An option to have a caries or obturation texture as a sprite and layering it over the tooth would be very nice

                  That would be ok easy to do by subclassing the PixmapItem and teach it to draw both the base image and some image over.
                  https://doc.qt.io/qt-5/qgraphicspixmapitem.html
                  ( just call normal draw and then draw a transparent image over that.)

                  ps. bumped you a bit so you should be able to post faster

                  1 Reply Last reply
                  2
                  • H Offline
                    H Offline
                    Hristo Konstantinov
                    wrote on last edited by
                    #13

                    Thanks for the quick replies mate! Obviously you gave me the direction I wanted. Thank you so much!

                    mrjjM 1 Reply Last reply
                    0
                    • H Hristo Konstantinov

                      Thanks for the quick replies mate! Obviously you gave me the direction I wanted. Thank you so much!

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

                      @Hristo-Konstantinov
                      Np :)
                      Make sure to read the docs about coordinate system as its slightly different with both global and local . That can be a bit surprising.
                      Do note you can set it to start at top, left and not center if you wish.

                      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