Qt Forum

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

    Unsolved Drawing image with 3'rd party library.

    3rd Party Software
    3
    6
    640
    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.
    • L
      LuckyGg last edited by

      Hi all!

      I have a question about using Qt with Open eVision library.

      Open eVision is the image processing library form Euresys.
      site: www.euresys.com

      This library provides the EImageBW8 object for 8bit mono image.

      And, this object can draw the image using Draw() API.

      Draw() API is as below:
      void Draw(
      HDC graphicContext,
      )

      In MFC, I can draw the image to Picture control using HDC from Picture control.

      But I don't know about how to do that in Qt.
      Qt is the same as MFC?
      In Qt, what kind of controls use to drawing image?
      (I want to use EImageBW8 object, not QImage.)

      Please give me an advice.

      Thank you :)

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

        Hi,

        No Qt is not like MFC.

        Do you mean you would like to do the drawing with your 3rd party library and then show the result in your Qt application ?

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

        L 1 Reply Last reply Reply Quote 0
        • L
          LuckyGg @SGaist last edited by

          @sgaist
          Hi. I'm so sorry to reply late.
          Yes, right.

          I would like to do the drawing with 3'rd party library.
          This library needs HDC from the target.

          I have tested that convert from 3'rd party library to QImage, and I could draw the image on QLabel.
          But I don't know how to draw directly on QLabel by using the 3'rd party library.

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

            I think that rendering to a QImage first is the right thing to do.

            If you need to update it regularly, you might want to make your own QWidget subclass and in the paint event use your third party library to render to a QImage and then paint that on your widget.

            The QtWinExtras module might give you some more tools for that.

            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
            • L
              LuckyGg last edited by LuckyGg

              Thank you for your reply :)
              so, you mean...

              1. 3rd party library to QImage.
              2. create subclass from QWidget.

              I will try it. Thank you for your advise!

              1 Reply Last reply Reply Quote 0
              • A
                AndrewShih @LuckyGg last edited by

                @LuckyGg
                Hi,I have a question.
                How to use Open eVision library in Qt?
                Please give me an advice.
                Thank you.

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