Qt Forum

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

    Call for Presentations - Qt World Summit

    Drawning over images

    General and Desktop
    2
    2
    559
    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.
    • A
      ArchGabe last edited by

      Hello guys,

      I am working on an user interface and I need some fancy drawning tools in order to draw a straight line over a picture. The picture is displayied on a QLabel (I am using OpenCv along Qt).
      I would like to do something like a click over the picture (mark a point over it), and while I move the pointer over the picture, the line end follows the pointer until I click over it again.

      Thank you in advance,

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

        Hi,

        You could take a look at the "Scribble Example":http://qt-project.org/doc/qt-4.8/widgets-scribble.html to get some ideas on how to start with it.

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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