Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. how to open computer camera in interface in qml for python (PySide6)
Forum Updated to NodeBB v4.3 + New Features

how to open computer camera in interface in qml for python (PySide6)

Scheduled Pinned Locked Moved Unsolved Qt for Python
14 Posts 3 Posters 872 Views 1 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.
  • A Offline
    A Offline
    Abdullah.S
    wrote on last edited by
    #1

    I need help about how to open my computer's camera in my interface. Actually I know how to open it by using PyQt5 but now I need to learn how to do that by Qt Creator. I searched all the forums but I found nothing, please help me. Thanks in advance.

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Qt Creator is an IDE it does not open any camera.

      If you are thinking about QtQuick, there's the Camera item 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

      A 1 Reply Last reply
      0
      • A Offline
        A Offline
        Abdullah.S
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Qt Creator is an IDE it does not open any camera.

          If you are thinking about QtQuick, there's the Camera item for that.

          A Offline
          A Offline
          Abdullah.S
          wrote on last edited by
          #4

          @SGaist I am sorry, I wanted to mean QtQuick. Can you give an example of how to use camera item in my interface. I do not know if I should put it on a label or rectangle . I would be very grateful if you could give an example.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            There's an example in the Camera item documentation.

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

            A 1 Reply Last reply
            0
            • SGaistS SGaist

              There's an example in the Camera item documentation.

              A Offline
              A Offline
              Abdullah.S
              wrote on last edited by
              #6

              @SGaist thank you but at example it says that we must import QtMultimedia but I cannot import it as a Qt 6.0.2 and PySide6 user. what should I do ?

              jsulmJ 1 Reply Last reply
              0
              • A Abdullah.S

                @SGaist thank you but at example it says that we must import QtMultimedia but I cannot import it as a Qt 6.0.2 and PySide6 user. what should I do ?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Abdullah-S said in how to open computer camera in interface in qml for python (PySide6):

                what should I do ?

                Upgrade to Qt 6.2.*

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                A 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Abdullah-S said in how to open computer camera in interface in qml for python (PySide6):

                  what should I do ?

                  Upgrade to Qt 6.2.*

                  A Offline
                  A Offline
                  Abdullah.S
                  wrote on last edited by
                  #8

                  @jsulm I do not know how to upgrade it should I reinstall Qt creator or should I use maintanenceTool and add component. Can you tell me what should I do. thank you

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    How did you originally installed PySide6 ?

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

                    A 2 Replies Last reply
                    0
                    • SGaistS SGaist

                      How did you originally installed PySide6 ?

                      A Offline
                      A Offline
                      Abdullah.S
                      wrote on last edited by
                      #10

                      @SGaist I wrote "pip3 install PySide6" on terminal

                      1 Reply Last reply
                      0
                      • SGaistS SGaist

                        How did you originally installed PySide6 ?

                        A Offline
                        A Offline
                        Abdullah.S
                        wrote on last edited by
                        #11

                        @SGaist I imported QtMultiMedia but still I am not able to open my computer's camera I want to see myself on my interface can you tell me how to do that because I could not find enough information. please tell me how can I do that by using main.py and main.qml. thanks

                        1 Reply Last reply
                        1
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Did you already follow the basic tutorial for QML and PySide6 ?

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

                          A 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            Did you already follow the basic tutorial for QML and PySide6 ?

                            A Offline
                            A Offline
                            Abdullah.S
                            wrote on last edited by
                            #13

                            @SGaist yes, really what should I do ?

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              If that part is working then use the example provided in the Camera type documentation.

                              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

                              • Login

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