Score:0

Why is my webcam not recognized by QCameraInfo in Qt5 on Ubuntu 20.04?

us flag

I want to list my available webcams using this function included in the QCameraInfo class in Qt 5, but when I check the returned list, I see that it's empty showing there's no webcam working on my computer. To check if my webcam is connected, I used Cheese and Kamoso softwares, but both of them could recognize it showing it works well in these programs. I even checked if my webcam is connected using lsusb command, and the name of my webcam was listed showing it is connected.

It's worth mentioning that the function in the QCameraInfo class can recognize my webcam well on Windows 10 but I don't why not on Ubuntu 20.04.

So, I don't know why is this happening and I don't what to do to solve this problem. Can anybody help me?

guiverc avatar
cn flag
I'm not familiar with Qt5 programming; but don't forget the link you provided is for Qt 5.15.5, and 20.04 or *focal* uses Qt 5.12.8 or the older LTS release of Qt.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.