qml webengine is running
I'll need to figure out the best way to show the html slideshow later but it's running and can accept html.
This commit is contained in:
parent
c1711f231b
commit
a7e3cfa39f
4 changed files with 8 additions and 3 deletions
|
@ -29,7 +29,7 @@ include(ECMPoQmTools)
|
|||
|
||||
kde_enable_exceptions()
|
||||
|
||||
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui QuickControls2 Widgets Sql X11Extras QmlImportScanner)
|
||||
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui QuickControls2 Widgets Sql X11Extras QmlImportScanner WebEngine)
|
||||
find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 CoreAddons I18n Archive)
|
||||
|
||||
# find_package(PkgConfig REQUIRED)
|
||||
|
@ -124,6 +124,7 @@ target_link_libraries(${CRATE} INTERFACE
|
|||
Qt5::Widgets
|
||||
Qt5::Sql
|
||||
Qt5::X11Extras
|
||||
Qt5::WebEngine
|
||||
KF5::Kirigami2
|
||||
KF5::I18n
|
||||
KF5::Archive
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
qt5.qtx11extras
|
||||
qt5.qtmultimedia
|
||||
qt5.qtwayland
|
||||
qt5.qtwebengine
|
||||
libsForQt5.kirigami2
|
||||
libsForQt5.qqc2-desktop-style
|
||||
libsForQt5.karchive
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <QtSql>
|
||||
#include <QSqlDatabase>
|
||||
#include <QSqlTableModel>
|
||||
#include <QtWebEngine>
|
||||
|
||||
#include <QObject>
|
||||
#include <QtGlobal>
|
||||
|
@ -99,6 +100,7 @@ int main(int argc, char *argv[])
|
|||
// qDebug() << QSurfaceFormat::defaultFormat();
|
||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("video-display")));
|
||||
QtWebEngine::initialize();
|
||||
QApplication app(argc, argv);
|
||||
KLocalizedString::setApplicationDomain("librepresenter");
|
||||
KAboutData aboutData("librepresenter", i18n("Libre Presenter"), "0.1",
|
||||
|
|
|
@ -168,10 +168,11 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
WebEngine {
|
||||
WebEngineView {
|
||||
id: web
|
||||
anchors.fill: parent
|
||||
source: webSource
|
||||
url: webSource
|
||||
visible: false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue