Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved is there any Qt Painter/Drawing demo?

    General and Desktop
    2
    5
    911
    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.
    • O
      opengpu2 last edited by

      is there any Qt Painter/Drawing demo?
      user can draw lines or other complicated shapes with specific line width.
      thank you

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

        If I enter "Qt Painter Drawing demo" in Google I get http://doc.qt.io/qt-5/qtwidgets-painting-basicdrawing-example.html
        Is that what you need?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        O 2 Replies Last reply Reply Quote 1
        • O
          opengpu2 @jsulm last edited by

          @jsulm thank you very much

          1 Reply Last reply Reply Quote 0
          • O
            opengpu2 @jsulm last edited by

            @jsulm what i want is draw anything while i press the mouseButton while mouseMove...

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

              Reimplement

              QWidget::mouseMoveEvent(QMouseEvent *event)
              

              http://doc.qt.io/qt-5.6/qmouseevent.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

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