Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickmediaplayer.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5#include <QtQml/qqmlcontext.h>
6
8
10
12{
13 if (m_source == source)
14 return;
15 m_source = source;
16 const QQmlContext *context = qmlContext(this);
17 setSource(context ? context->resolvedUrl(source) : source);
19}
20
22{
23 return m_source;
24}
26
27#include "moc_qquickmediaplayer_p.cpp"
The QMediaPlayer class allows the playing of a media files.
void setSource(const QUrl &source)
\qmlproperty url QtMultimedia::MediaPlayer::source
\inmodule QtCore
Definition qobject.h:90
The QQmlContext class defines a context within a QML engine.
Definition qqmlcontext.h:25
void qmlSetSource(const QUrl &source)
void sourceChanged(const QUrl &source)
QQuickMediaPlayer(QObject *parent=nullptr)
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
static void * context
GLsizei GLsizei GLchar * source
QQmlContext * qmlContext(const QObject *obj)
Definition qqml.cpp:71
#define emit
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent