Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Solved How to draw graphics like AutoCAD implement coordinate system and zoom

    General and Desktop
    4
    8
    316
    Loading More Posts
    • 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.
    • Tarik EL JABIRI
      Tarik EL JABIRI last edited by

      hi,
      I want to know if there is a possibilty to create app like autocad to draw graphics, vector graphics with QT.
      thanks.

      aha_1980 1 Reply Last reply Reply Quote 0
      • aha_1980
        aha_1980 Lifetime Qt Champion @Tarik EL JABIRI last edited by

        hi @tarik-el-jabiri,

        sure, e.g. QCAD is written in Qt.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 1
        • Tarik EL JABIRI
          Tarik EL JABIRI last edited by

          hi @aha_1980,
          firstfull thank you for your response. so I will ask for resources or tutorials for this purpose.
          thanks.

          1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion last edited by

            Hi
            This could be a good starting point
            https://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html
            Its available directly in Creator under examples.

            Tarik EL JABIRI 1 Reply Last reply Reply Quote 1
            • O
              ofmrew last edited by

              Tarik

              You can do it, I have, but Qt lacks all of the necessary tools. For example every CAD system I have used has a requirement to find the closest point on another graphical--vector projection--which I did not find in Qt. Do not get me wrong, Qt supplies most of the tools for creating and displaying graphics, but not for interactively creating graphics; you will need to add many. I am currently writing a book that fills in most of the omissions.

              Tarik EL JABIRI mrjj 2 Replies Last reply Reply Quote 1
              • Tarik EL JABIRI
                Tarik EL JABIRI @ofmrew last edited by

                hi @ofmrew,
                Thank you for your response. that's what i see, i hope they improve Qt like for this purpose. e.g. creating a widget QCadView
                it will help a lot.
                thank you.

                1 Reply Last reply Reply Quote 0
                • Tarik EL JABIRI
                  Tarik EL JABIRI @mrjj last edited by

                  hi @mrjj,

                  Thank you for your response. this may help.
                  thank you.

                  1 Reply Last reply Reply Quote 0
                  • mrjj
                    mrjj Lifetime Qt Champion @ofmrew last edited by

                    @ofmrew
                    please be sure to post book name in
                    https://forum.qt.io/category/6/announcements
                    :)
                    (when its ready)

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post