how to open computer camera in interface in qml for python (PySide6)
-
wrote on 21 Feb 2022, 12:21 last edited by
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.
-
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.
-
wrote on 22 Feb 2022, 06:06 last edited byThis post is deleted!
-
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.
wrote on 22 Feb 2022, 06:19 last edited by@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.
-
There's an example in the Camera item documentation.
-
There's an example in the Camera item documentation.
wrote on 22 Feb 2022, 08:34 last edited by@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 ?
-
@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 ?
@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.*
-
@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.*
wrote on 5 Mar 2022, 18:41 last edited by@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
-
How did you originally installed PySide6 ?
-
wrote on 6 Mar 2022, 08:27 last edited by
@SGaist I wrote "pip3 install PySide6" on terminal
-
wrote on 6 Mar 2022, 16:03 last edited by
-
Did you already follow the basic tutorial for QML and PySide6 ?
-
Did you already follow the basic tutorial for QML and PySide6 ?
wrote on 6 Mar 2022, 20:41 last edited by@SGaist yes, really what should I do ?
-
If that part is working then use the example provided in the Camera type documentation.