qt5.10

QML RTSP Stream from a network camera

孤者浪人 提交于 2020-02-25 13:30:29
问题 I have a question about the RTSP Stream. How can I display a RTSP Stream from a netwok camera in qml? the settings: Qt5.10 Camera: LunaIP L-DA-5203-V2 OS: Windows 7 Things I have tested: QML: Camera, MediaPlayer, VideoOutput Until now I didn't found any things how I can solve it in QML? 回答1: There are 2 ways, which worked for me: 1.) In my form.ui.qml I'm using the MediaPlayer and the VideoOutput components MediaPlayer { id: videoPlayer source: "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k

QML RTSP Stream from a network camera

家住魔仙堡 提交于 2020-02-25 13:29:13
问题 I have a question about the RTSP Stream. How can I display a RTSP Stream from a netwok camera in qml? the settings: Qt5.10 Camera: LunaIP L-DA-5203-V2 OS: Windows 7 Things I have tested: QML: Camera, MediaPlayer, VideoOutput Until now I didn't found any things how I can solve it in QML? 回答1: There are 2 ways, which worked for me: 1.) In my form.ui.qml I'm using the MediaPlayer and the VideoOutput components MediaPlayer { id: videoPlayer source: "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k

Construct QString from QJsonArray in Qt

偶尔善良 提交于 2020-01-16 19:45:09
问题 While trying to construct a QString from values from a QJsonArray , I get the following error: error: passing 'const QString' as 'this' argument discards qualifiers [-fpermissive] . Dunno where I am getting it wrong in this code: QString <CLASS_NAME>::getData(QString callerValue) { QString BASE_URL = "<URL>"; QString stringToReturn = ""; QObject::connect(manager, &QNetworkAccessManager::finished, this, [=](QNetworkReply *reply) { QByteArray barr = reply->readAll(); QJsonParseError jpe;

Qml - c++ signal parameters “undefined” in qml

馋奶兔 提交于 2019-12-24 07:06:12
问题 I receive a signal from a worker thread and re-emit it via C++ Singleton (CTaskManager) to qml. void CTaskManager::runAsync(CTask* task) { Q_CHECK_PTR(task); QThread* thread = new QThread(); task->moveToThread(thread); connect(this , SIGNAL(canceled()) , task , SLOT(cancel()) , Qt::DirectConnection); connect(task , SIGNAL(progressChanged(float)) , this , SLOT(setProgress(float)) , Qt::DirectConnection); connect(task , SIGNAL(finished(bool,unsigned int, const QVariantMap&)) , this , SLOT

install opencv 3.4.1 and Qt 5.10 with CMAKE

笑着哭i 提交于 2019-12-11 09:48:13
问题 I install Qt 5.10 latest version and opencv3.4.1 and I couldn't install the library in this version of Qt with Cmake can anybody help me to do it on my windows 10 64-bit please? I tried with this video also https://www.youtube.com/watch?v=ZOSu-2Oju-A and in cmd step I have this (picture in this link) in this link also (( https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows )) I do all steps carefully but I didn't found the folder bin in opencv-build after do the steps and My OS is windows

Qt's FileDialog defaultSuffix not functionning

孤人 提交于 2019-12-11 02:32:24
问题 I'm using the following code to the new property of the filedialog under QtQuick.Dialogs 1.3 & Qt 5.10.0. I've build it using Qt Creator 5.10 default kit. import QtQuick 2.10 import QtQuick.Window 2.2 import QtQuick.Dialogs 1.3 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") FileDialog { id: fileDialog title: "Please choose a file" folder: shortcuts.home defaultSuffix: "txt" selectExisting: false selectMultiple: false onAccepted: { console.log("You chose: " + fileUrl)

Qt stream control transmission protocol (sctp)

坚强是说给别人听的谎言 提交于 2019-12-11 02:23:48
问题 I am attempting to run the qt examples multistreamserver & multistreamclient, which rely on the QSctpServer & QSctpSocket. I receive errors "QSctpSosket does not name a type" and "invalid use of incomplete type 'class QSctpServer'" What is going on? Running Ubuntu 16.04, Qt 5.10.1 回答1: SCTP functionality does not exist in windows... so by default sctp is disabled. You must configure qt with the -sctp flag and the -static commands, make sure to link any libraries you need as well. 来源: https:/

Can I build chromium with ffmpeg to support all video formats?

佐手、 提交于 2019-12-06 11:36:12
问题 Under version Qt5.2, I used QtWebView, it can call third-party extensions automatically to support video formats such as avi, mpeg, mov and flv. But when I upgraded to Qt5.10 and changed QtWebView to QtWebengineView, it worked differently and I couldn't call third-party extensions. If I want to modify chromium source with ffmpeg to support all video formats for QtWebengine, what should I do? 回答1: If you are building Chromium using the official build instruction, then you just need to add the

Can I build chromium with ffmpeg to support all video formats?

旧巷老猫 提交于 2019-12-04 15:08:01
Under version Qt5.2, I used QtWebView, it can call third-party extensions automatically to support video formats such as avi, mpeg, mov and flv. But when I upgraded to Qt5.10 and changed QtWebView to QtWebengineView, it worked differently and I couldn't call third-party extensions. If I want to modify chromium source with ffmpeg to support all video formats for QtWebengine, what should I do? If you are building Chromium using the official build instruction , then you just need to add the following options to the args.gn file: proprietary_codecs=true ffmpeg_branding="Chrome" You needn't to use

Qt Creator Android error “Platform SDK installed”

十年热恋 提交于 2019-11-28 21:04:00
I am developing Qt Cross platform application for Android, recently i have updated Qt creator and Installed new Qt version. I am using 'Qt Creator version 4.5.0' . I have updated to 'QT version 5.10' . This Set up is done on Ubuntu 16.04. Followed link Getting Started with QT Installation . I am always getting Error message "Android Settings have error" in Qt Creator->Tools->Options->Devices->Android. Because of above issue i am not able to build application for Android. I have recently updated my Android sdk, I am able to build and run Sample application from Android Studio, indicating that