Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Drawing image with 3'rd party library.
Forum Updated to NodeBB v4.3 + New Features

Drawing image with 3'rd party library.

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
6 Posts 3 Posters 1.1k Views 2 Watching
  • 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 Offline
    L Offline
    LuckyGg
    wrote on last edited by
    #1

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

      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
      0
      • SGaistS SGaist

        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 ?

        L Offline
        L Offline
        LuckyGg
        wrote on last edited by
        #3

        @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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • L Offline
            L Offline
            LuckyGg
            wrote on last edited by LuckyGg
            #5

            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
            0
            • L LuckyGg

              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 Offline
              A Offline
              AndrewShih
              wrote on last edited by
              #6

              @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
              0

              • Login

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