Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Cannot use QtMultimedia in Qt Creator (Windows)
Qt 6.11 is out! See what's new in the release blog

Cannot use QtMultimedia in Qt Creator (Windows)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 849 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.
  • paxdiabloP Offline
    paxdiabloP Offline
    paxdiablo
    wrote on last edited by
    #1

    I am using the designer within QtCreater to attempt to create a proof-of-concept video stream player with QML. It's using Quick Controls rather than widgets as it will need to run on a device with no widgets available.

    I've successfully put a one-pixel red border on the screen edges with an empty rectangle inside it (rectangles withing column layout within row layout) as a simple start. This runs both under Windows and on the device I intend to deploy to.

    However, I want to replace the empty rectangle with a video player control and I'm having trouble figuring out how to do that, initially for Windows.

    I've added multimedia to the original qml quick that my QT variable was set to in ProjName.pro file, and I've run qmake from the menu to ensure it's been actioned.

    However, when I then use QtCreator to try and import the module while editing the main form in the designer, I can see nothing containing the word "multimedia" at all. All I see is:

    Qt.labs.calendar 1.0
    Qt.labs.controls 1.0
    Qt.labs.controls.material 1.0
    Qt.labs.controls.universal 1.0
    Qt.labs.folderlistmodel 2.1
    Qt.labs.settings 1.0
    Qt.labs.templates 1.0
    QtCanvas3D 1.1
    QtGraphicalEffects.private 1.0
    QtPositioning 5.6
    QtQuick.Controls 1.5
    QtQuick.Extras 1.4
    QtQuick.LocalStorage 2.0
    QtQuick.Window 2.2
    QtQuick.XmlListModel 2.0
    QtSensors 5.6
    QtTest 1.1
    QtWebSockets 1.0
    QtWebView 1.1
    

    I can manually edit the MainForm.ui.qml file and insert import QtMultimedia 5.6 into it but, when the designer comes back up, it has an alert next to the top level control with the help text:

    found not working imports:
        file:///C:/path-to/MainForm.ui.qml:2 module "QtMultimedia"
        is not installed
    

    This is all with QtCreator 4.0.1 as downloaded from Qt's site about a month ago, and we're using Qt 5.6.1 on both Windows and the target platform.

    All the solutions I found on the net seem to indicate that the import is all that's needed but this appears not to be the case here.

    Any ideas what I'm doing wrong, or what is the process for getting one of the QtMultimedia controls running within a QML app?

    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