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. Image gui with Qt

Image gui with Qt

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 3.4k 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.
  • S Offline
    S Offline
    sanda199
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #2

      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
      0
      • S Offline
        S Offline
        sanda199
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MuldeR
          wrote on last edited by
          #4

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

            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
            0
            • M Offline
              M Offline
              MuldeR
              wrote on last edited by
              #6

              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
              0
              • S Offline
                S Offline
                sanda199
                wrote on last edited by
                #7

                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
                0
                • S Offline
                  S Offline
                  sanda199
                  wrote on last edited by
                  #8

                  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
                  0
                  • A Offline
                    A Offline
                    andre
                    wrote on last edited by
                    #9

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

                    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