Qt Forum

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

    Qt Academy Launch in California!

    Image gui with Qt

    General and Desktop
    3
    9
    2879
    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.
    • S
      sanda199 last edited by

      Hi everyone, I am totally new for Qt. I wanna do image gui using Qt. Is it possible to do without using openCV? If you have any ideas, pls kindly share me. Thanks millions.

      1 Reply Last reply Reply Quote 0
      • M
        MuldeR last edited by

        Depends on what exactly you want to do!

        If all you want is showing some images on the GUI you certainly don't need OpenCV ;-)

        From the docs:

        bq. Qt provides four classes for handling image data: QImage, QPixmap, QBitmap and QPicture. QImage is designed and optimized for I/O, and for direct pixel access and manipulation, while QPixmap is designed and optimized for showing images on screen. QBitmap is only a convenience class that inherits QPixmap, ensuring a depth of 1. The isQBitmap() function returns true if a QPixmap object is really a bitmap, otherwise returns false. Finally, the QPicture class is a paint device that records and replays QPainter commands.

        Also there are QImageIOPlugin's for pretty much any relevant image format (JPEG, PNG, GIF, SVG, TIFF, etc).

        My OpenSource software at: http://muldersoft.com/

        Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

        Go visit the coop: http://youtu.be/Jay...

        1 Reply Last reply Reply Quote 0
        • S
          sanda199 last edited by

          Hi, Thanks for your info. Where can I get some infos using those classes? Thanks again

          1 Reply Last reply Reply Quote 0
          • M
            MuldeR last edited by

            You say you are new to Qt, but have you at least looked at the Qt documentation ???

            You find it "online":http://qt-project.org/doc/qt-4.8/ or via Qt Assistant program ;-)

            My OpenSource software at: http://muldersoft.com/

            Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

            Go visit the coop: http://youtu.be/Jay...

            1 Reply Last reply Reply Quote 0
            • S
              sanda199 last edited by

              so let me ask you one more question. Is it possible to make image gui that capture image from webcam? I just only wanna use qt without openCV.

              1 Reply Last reply Reply Quote 0
              • M
                MuldeR last edited by

                Probably depends on how you access the web-cam. I'm not aware of any Qt class that can do this directly. I guess on Windows you'd do that via DirectShow, on Linux via something like GStreamer. But as soon as you have queried the image data from the cam, you surely can present it on the screen via QPixmap.

                My OpenSource software at: http://muldersoft.com/

                Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                Go visit the coop: http://youtu.be/Jay...

                1 Reply Last reply Reply Quote 0
                • S
                  sanda199 last edited by

                  I am using ubuntu 11.10. Coz I wanna display real time image gui using qt. So I also need to use GStreamer?? Thanks

                  1 Reply Last reply Reply Quote 0
                  • S
                    sanda199 last edited by

                    I don't know how to start access my laptop webcam in qt code. Do you have any ideas to start? If so, pls kindly share me. Thanks :)

                    1 Reply Last reply Reply Quote 0
                    • A
                      andre last edited by

                      Perhaps you should start in the "documentation":/doc/qt-5.0/qtmultimedia/cameraoverview.html

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