qt5.7

QT: module “QtWebView” is not installed

僤鯓⒐⒋嵵緔 提交于 2019-12-07 12:44:44
问题 My OS is win10 and the version of QT is Qt5.7 mingw53_32 and the target os is win10. when I use qmlscene to excute a qml file, it occurred some error: qrc:/[...].qml:3 module "QtWebView" is not installed My qml file is following. import QtQuick 2.0 import QtQuick.Controls 1.0 import QtWebView 1.1 ScrollView { width: 1280 height: 720 WebView { id: webview url: "http://www.baidu.com" anchors.fill: parent onNavigationRequested: { // detect URL scheme prefix, most likely an external link var

Adding and removing items from a C++ list in QML/QT 5.7

会有一股神秘感。 提交于 2019-12-06 15:12:02
问题 I'm working on a simple project to try and learn QT 5.7, QML, and C++. I want to create a simple interface that has a list of items that I can add and remove items from using a couple of buttons. I've been reading a bunch of different guides online trying to piece together something but I keep getting stuck. I've tried using QQmlListProperty<T> and QAbstractListModel but I have questions about both approaches: For my project is QQmlListProperty<T> the right thing to use or I should use

QT: module “QtWebView” is not installed

痴心易碎 提交于 2019-12-05 18:52:53
My OS is win10 and the version of QT is Qt5.7 mingw53_32 and the target os is win10. when I use qmlscene to excute a qml file, it occurred some error: qrc:/[...].qml:3 module "QtWebView" is not installed My qml file is following. import QtQuick 2.0 import QtQuick.Controls 1.0 import QtWebView 1.1 ScrollView { width: 1280 height: 720 WebView { id: webview url: "http://www.baidu.com" anchors.fill: parent onNavigationRequested: { // detect URL scheme prefix, most likely an external link var schemaRE = /^\w+:/; if (schemaRE.test(request.url)) { request.action = WebView.AcceptRequest; } else {

How to cross-compile for RasPi3

天大地大妈咪最大 提交于 2019-12-04 12:26:30
问题 I am currently trying to cross-compile Qt 5.7 for my Raspberry Pi 3. This is my first cross-compiling atempt, so please be kind. :) On the Qt Wiki I found instructions for the Raspberry Pi 2, which I am currently trying to adapt. The compile line for RasPi 2 is as follows: ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option \ CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- \ -sysroot ~/raspi/sysroot -opensource

Add 32-bit versions of Qt 5.7 on a 64-bit machine

隐身守侯 提交于 2019-11-30 19:01:44
Want to manually install 32-bit versions of Qt 5.7 so that I will be able to deploy my app to not only 32-bit but 64-bit machines as well. Initially when I installed it on my 64-bit Windows 7 machine , I only selected the 64-bit components and, hence, I can only select the MSVC2015_64 bit kits in Qt Creator to build my app with. Since I want to deploy my app to a 32-bit Windows 10 machine , I am trying to add the 32-bit Qt versions to my installation; tried through Tools > Options > Build & Run > Add... with no success. Searched for some answer/guide to the documentation and to other online