QSound error - reference?

I'm trying to play a sound from a QSound object. I can't see why it's not working, looking at previous example This is the header #ifndef ACCESSPANEL_H #define ACCESSPANEL_H #include...

How to select the parameter of the setCodec() function for audio recording in Qt

I'm using QAudioRecorder in Qt to record a voice, here is the sample code. audioRecorder = new QAudioRecorder; QAudioEncoderSettings audioSettings; audioSettings.setCodec("audio/amr"); //here's...

How to get audio devices and names

I am trying to get the audio devices names from using PyQt4 framework in Python. The code is as follows: from PyQt4 import QtCore, QtGui, QtMultimedia temp_list=() x=() for i in range(5): ...

Qt 5.4 application bundled for OSX crashes when launched

I've been trying to bundle my Qt application as an OSX .app but encountered weird crashing right when I launch the bundled app. The application uses QtCore, QtGui, QtNetwork, QtWidgets,...

[Windows, Qt5, QMediaPlayer, QMediaPlaylist]: Tiny duration black screen when the current video source changed

I'm writing a Video Player with Qt5::QMediaPlayer to play randomly some videos for a randomly duration as this: int main(int argc, char *argv[]) { QApplication a(argc, argv); ...

Qt iOS issue - using QAudioRecorder changes audio output device

I am developing a mobile application targeted on two platforms - iOS and Android - using Qt technology. App is recording sounds and playing them back after a bit of processing. For doing so, I'm...

GStreamer installation is missing a plug-in

I hope that someone can help with this problem, been searching for a solution for the past 2 days. To describe the problem in short: I'm trying to make a simple qt5.7 application that will stream...

Can't import QtMultimedia in PyQt 5 on Windows

I'm trying to learn PyQt5 + qml, and everything I tried so far works fine, however I've ran into a snag when trying to import QtMultimedia into my qml file results in the following error: plugin...

how to clip an image along specific path in qml

I have a Background groove image for which I have to produce progress bar effect using Progress filling Image How to clip the Progress filling Image along the Path of the groove of the Progress...

How to add a QVideoWidget in Qt Designer?

I want to insert video in blue box(ui image) but I don't know how to insert video file. My code is here. I don't know how to add video... Just know example that make video player ... import...

Get file name from an opened file, not a file path

Let's say I opened a file called file1.mp3 in a PyQt5 app using the file dialog and assigned it to a variable like this: song = QFileDialog.getOpenFileName(self, "Open Song", "~", "Sound Files...

Building QT module from source

Can please someone explain in detail how to build a single qt module. I tried to understand the build sources documentation, but there is no info on how to build just a single module, let alone...

Playing Audio with QtMultimedia?

Part of a PyQt5 program I'm writing is to take in an audio stream and play it back. I've searched around and this is the code I have found that is said to work: url =...

How to detect camera plug/unplug when running on Raspberry (Qt)?

I have an issue as below. I build qt app with qtmultimedia to capture video from a camera on Raspberry pi 3 and show to screen. When the camera module is working well, if I remove it, I want to...

Use vivante GPU on IMX6 with 4.14 kernel

I am working on IMX6QP with yocto rocko / Linux 4.14.24 and I am trying to use the GPU. My yocto configuration file : MACHINE ??= 'imx6qp-tx6-emmc' DL_DIR ?= "${BSPDIR}/downloads" SSTATE_DIR ?=...

PyQt5 - open QMediaplayer in new window and play video

This is probably comes down to basic python understanding, but I'm struggling with opening a video in a new window using PyQt5 and Python3. When I run this code: from PyQt5.QtMultimediaWidgets...

QtQuick2 Video rendering quality and embedding QVideoWidget to Qml

I am working on a Qml application based on the QtQuick2, and I am having problems with the Video component included in the QtMultimedia 5.0 module. The application is supposed to add video to Qml...

Error: No module named 'PyQt5.QtMultimedia'

I am trying to build a GUI integrating videos, and for this I need to import PyQt5.QtMultimedia. Yet when trying to import the module (import PyQt5.QtMultimedia) I receive an error:...

PyQt5 widgets intended to be transparent to show QVideoPlayer pass through video and adopt QMainWindow background

I have a QMainWindow with a QVideoWidget set as the central widget. The video is acting like a background to the main window of the blackjack game I'm making. I have two buttons I'd like to place...

Record audio using pyqt5

Is there any way to record microphone input in pyqt5? I try this code: from PyQt5 import QtCore, QtGui, QtWidgets, QtMultimedia import time class Ui_MainWindow(object): def setupUi(self,...

How to play video backwards in qt using vlc-qt libvlc

I am developing a media player using vlc-qt , Actually I want a button which will play do the fast backward operation. I don't have the problem with the fast forward operation but not able to...

How to make a video player like WhatsApp/YouTube In PyQt5?

I making a video player with pyqt5 but the problem is it cant run a video which is not complete or used by some other process like currently downloading or decrypting.So are there any way to make...

QtMediaplayer wont work on frameless and translucent background PyQt5

I am making a videoplayer with QMediaplayer but it wont work on frameless and translucent background window.I want to make a round corner windows so i need frameless and translucent window. Here...

Qt6 and Multimedia module

As I can see in Qt6 no more Multimedia API. Am I right? Is it correct that in Qt6 for such simple task as playing sound I should look at third-party libraries now?

PyQt5 select which audio device output will play

This simple code will have a GUI button that, when pressed, will play example.mp3 to the default audio output device. import sys from PyQt5 import QtCore, QtMultimedia from PyQt5.QtMultimedia...

QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) not working at all on python

I've been programming an application with PySide2 and Python 3.8, and i was trying to enable HiDPi, and i found that adding this at the start of the...

PulseAudioService pa_context_connect() failed in all QT GUI applications

I have an embedded linux device that is running linux kernel 4.4 and QT5.9.1 with busybox. I have two applications written in QT, one with a GUI and another backend service also written in QT but...

Embed separate video streams in Qt widgets on embedded-linux using Gstreamer

I'm looking for any hints I can get on this problem : I have an i.MX6 device running an embedded-linux buildroot OS, and a Qt5 Widget-based app that runs on that screen. I also have a custom SDK,...

Taking picture from QGIS Plugin using PyQt

I have a button in a Plugin to take a photo and relate it with a feature of a layer in QGIS. My aim is to select a feature, open a camera view (viewfinder), take a photo and save it with the...

How can I build Qt 5.13.2 with GCC 11.1 on Windows?

I have been building Qt 5 for a long time successfully on Windows using GCC/MinGW-w64. When I try the same with GCC 11.1, the build fails with a strange error message. What can I do to make it...