webengine

Materialize Icons doesn't work in JavaFX Browser

我的未来我决定 提交于 2021-02-10 18:17:37
问题 I'm trying to show MaterialIcons on my JavaFx WebBrowser using webEngine, but it just shows the description of the icon. Icons doesn't work also on IE and Safari. Does anyone know how to make it readable? 回答1: I also struggle on that one, so for those who are intersted to know, JavaFX is only compatible with MaterialIcons written with numerical character references as James_D stated and not with ligatures format. So insted of writing : <i class="material-icons">add</i> You should write : <i

JavaFX: Display PDF in WebView

為{幸葍}努か 提交于 2019-12-20 03:12:46
问题 I need to display a PDF inside the default WebView of JavaFX. I assumed, that i would easily be able to do that like this. import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.web.WebEngine; import javafx.scene.web.WebView; import javafx.stage.Stage; public class ShowPdfTest extends Application { public static void main(String[] args) { launch(); } @Override public void start(Stage primaryStage) throws Exception { WebView webView = new WebView(); WebEngine

PyQt 5.11 missing WebEngine modules

拟墨画扇 提交于 2019-12-17 16:58:21
问题 So I read the note on "PyQt 5.11 missing WebEngine modules" at https://www.riverbankcomputing.com/software/pyqt/download5. But it doesn't help me understand why, or what to do regarding the missing WebEngine modules? The only thing that works is to revert to PyQt 5.10.0 or use x64 version. Can anyone explain and help me understand how I am meant to continue using PyQt5 x86 when the modules I use are now missing in 5.11.x and there appears to be no resource to re-acquire them. Are the

How to send HTTPHeader using QT WebEngine?

 ̄綄美尐妖づ 提交于 2019-12-14 03:57:32
问题 I was playing around with QT WebEngine to make a desktop web browser which suits my requirements while working. Unfortunately, I need send some data with the HTTP Header to a site. I came across QWebEngineUrlRequestInfo class' void QWebEngineUrlRequestInfo::setHttpHeader(const QByteArray &name, const QByteArray &value) method but I don't really know how to use it in code. This is my code so far: import QtQuick 2.7 import QtQuick.Window 2.2 import QtQuick.Controls 2.0 import QtWebEngine 1.3

JavaFX: Display PDF in WebView

孤者浪人 提交于 2019-12-02 01:55:52
I need to display a PDF inside the default WebView of JavaFX. I assumed, that i would easily be able to do that like this. import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.web.WebEngine; import javafx.scene.web.WebView; import javafx.stage.Stage; public class ShowPdfTest extends Application { public static void main(String[] args) { launch(); } @Override public void start(Stage primaryStage) throws Exception { WebView webView = new WebView(); WebEngine engine = webView.getEngine(); Scene scene = new Scene(webView); primaryStage.setScene(scene); primaryStage

Cannot sign in to Google in JavaFX WebView

假装没事ソ 提交于 2019-11-28 11:23:50
I cannot sign in to Google in JavaFX WebView. The page doesn't load when I click the 'Next' button. Other logins on different websites work fine. Here is an example you can run: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.StackPane; import javafx.scene.web.WebEngine; import javafx.scene.web.WebView; import javafx.stage.Stage; public class App extends Application { @Override public void start(Stage primaryStage) throws Exception { WebView browser = new WebView(); WebEngine webEngine = browser.getEngine(); webEngine.load("https://calendar.google

Cannot sign in to Google in JavaFX WebView

强颜欢笑 提交于 2019-11-27 19:21:28
问题 I cannot sign in to Google in JavaFX WebView. The page doesn't load when I click the 'Next' button. Other logins on different websites work fine. Here is an example you can run: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.StackPane; import javafx.scene.web.WebEngine; import javafx.scene.web.WebView; import javafx.stage.Stage; public class App extends Application { @Override public void start(Stage primaryStage) throws Exception { WebView