Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickmediaplayer_p.h
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
4#ifndef QQUICKMEDIAPLAYER_H
5#define QQUICKMEDIAPLAYER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QMediaPlayer>
19#include <QtQml/qqml.h>
20#include <qtmultimediaquickexports.h>
21#include <qurl.h>
22#include <private/qglobal_p.h>
23
25
26class Q_MULTIMEDIAQUICK_EXPORT QQuickMediaPlayer : public QMediaPlayer
27{
29 Q_PROPERTY(QUrl source READ qmlSource WRITE qmlSetSource NOTIFY sourceChanged)
30 QML_NAMED_ELEMENT(MediaPlayer)
31
32public:
34
35 void qmlSetSource(const QUrl &source);
36
37 QUrl qmlSource() const;
38
41
42private:
43 QUrl m_source;
44};
45
47
48#endif
The QMediaPlayer class allows the playing of a media files.
\inmodule QtCore
Definition qobject.h:90
void sourceChanged(const QUrl &source)
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent