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. is there any Qt Painter/Drawing demo?

is there any Qt Painter/Drawing demo?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.1k Views
  • 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 Offline
    O Offline
    opengpu2
    wrote on last edited by
    #1

    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
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      1
      • jsulmJ jsulm

        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?

        O Offline
        O Offline
        opengpu2
        wrote on last edited by
        #3

        @jsulm thank you very much

        1 Reply Last reply
        0
        • jsulmJ jsulm

          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?

          O Offline
          O Offline
          opengpu2
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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
            0

            • Login

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