how to open computer camera in interface in qml for python (PySide6)
-
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.
-
This 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.
@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.
@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.*
@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 ?
-
@SGaist I wrote "pip3 install PySide6" on terminal
-
-
Did you already follow the basic tutorial for QML and PySide6 ?
-
Did you already follow the basic tutorial for QML and PySide6 ?
@SGaist yes, really what should I do ?
-
If that part is working then use the example provided in the Camera type documentation.