Quantcast
Channel: QtWebEngine
Viewing all 13965 articles
Browse latest View live

Unsolved Moving from MSVC 2017 PRO to MSVC 2017 Community and QtWebEngine Error

$
0
0

I uninstalled MSVC Pro and Installed MSVC 2017 Community Edition and it seems none of my WebBrowser ( QtWebEngine) Apps work now.

Just to make sure, I installed all of QT and Microsoft Visual Studio 2017, restarted then re-installed with the same issue.

I am running QT 11.3 and trying to run the Quick Nano Browser from the Example Projects.

Do I need to reinstall the Pro version of MSVC, or is there an extra step I am missing?

I am trying to compile a 64 bit Version of MSVC 2017 Example Quick Nano Browser.

MSVC 2017

https://www.eatoncode.com/resources/shareit/Visual_Studio_Installer_2019-02-18_09.37.08.png

https://www.eatoncode.com/resources/shareit/Visual_Studio_Installer_2019-02-18_09.57.52.png

Qt Creator 4.8.1

https://www.eatoncode.com/resources/shareit/main.cpp_%40_quicknanobrowser_-_Qt_Creator_2019-02-18_09.42.52.png

https://www.eatoncode.com/resources/shareit/Options_2019-02-18_09.43.44.png

https://www.eatoncode.com/resources/shareit/Maintain_Qt_2019-02-18_10.02.02.png

Windows 10 64 Bit

https://www.eatoncode.com/resources/shareit/Settings_2019-02-18_10.04.55.png

Just recently updated to 1809, not sure if that's an issue or not.

Thanks in advance.


Unsolved 5.12.1 QWebEngine ClientSSL's Example

$
0
0

I saw in the patch change notes that Client SSL certificates were now support in 5.12.1. So I loaded the SimpleBrowser example.
When I ran it (built with MSVC2017 64bit) and then pointed it to a internal lan server that uses a Self Signed Client SSL authentication system. The example crashed.

alt text
alt text

So i put the example in debug, cleaned and rebuilt it. When i Ran it and pointed at the same server. The Application hangs up and gives this output, but does not kick over for a debug.

[12564:14860:0219/131011.251:WARNING:backend_impl.cc(1841)] Destroying invalid entry.

Then when i trying to stop the debuging. I can not. In fact i have to go into the task manager and kill cdb to get the program to terminate.

So at the moment it looks like the problem is located inside chromium, but can not say for sure. Since the example code doesn't want to run in debug mode when dealin with SSL's.

So at the moment i'm unsure where to go from here.

Unsolved migrate old application

$
0
0

Hello every one, I'm newer with Qt,
I need to migrate an old application works only on windows to a cross-platefom application without changing the source code because it's very delicate.
So there is any methode to include the external application.

also the external app developped with html5, css, js, kendoUI, and it have a DLL files.

Unsolved How to disable scrolling past the top/bottom/left/right in a QWebEngineView rendered page ?

$
0
0

Hallo,

do you have a solution? i have the same problem and i use Qt5.6.2

Thank you

Unsolved Closing a webrtc session.

$
0
0

I use the camera in my application , I can close the camera fine in order to start a webrtc session, I can't restart the camera though, because I can't tell when the webengine has finished using the camera. Is there a way to terminate the webengine and be told when it is fully terminated.

Unsolved QML WebEngineView elements integrate in page and scroll

$
0
0

Hello, there is a page where the web element is mounted in this page, but it does not fit the entire area, when you try to scroll, nothing happens in the element area. Everything works when to scroll through the green area (all in the example). The question is how to catch (handle) the WebEngineView focus?

if scroll green region = all is well
if mouse cursor in yellow region = does not scroll

0_1550944456213_webScroll.jpg

calculation web elements

 onLoadingChanged: {
                    webView.runJavaScript(
                                "document.documentElement.scrollHeight;", function (i_actualPageHeight) {rootArticleFull.heightArticle = i_actualPageHeight; });
                }

Unsolved QWebEngine gets stuck on a certain type of page

$
0
0

Hello, I have a simple browser built using QWebEngineView.
When using it on Windows 10 it gets stuck at a certain kind of page, this one in particular. The same thing happens with the "simple browser" Qt example. It works fine on the macOS version.

Does any one know what is causing this and how t0 make it work with this of page?

Windows:
Qt 5.9.2 msvc 2015.

My thanks to anyone who can offer advice.

Unsolved How to enable allowGeolocationOnInsecureOrigins in Python

$
0
0

I'm making a browser in Python with PyQt5. I want to enable Google Geo Location API. Basically I want to show popup when a site want to get user's location.

self.browser = QWebEngineView()
self.browser.allowGeolocationOnInsecureOrigins:True

If we can auto allow the browser for getting location permission that will be best.


Solved Webengine example fail with "Unknown module(s) in QT: webengine"

$
0
0

It now says Qt Webengine component is only supported for MSVC 2017, took me a while to figure out.

Unsolved RPi3, WebView locks the mouse, while keyboard works fine

$
0
0

I'm trying to dinamically open and close a web view, using

LayoutVerticalMain->addWidget(&WebView);
WebView.load(QUrl(url));
WebView.show();

and

WebView.hide();

.
On the main.cpp I called

QtWebEngine::initialize();

before the

QMainWindow::show()

The view opens fine, but when I move the cursor over the WebView, the mouse "stops" at its border, without entering. If I use the keyboard's tab key to navigate the page, it works fine. Any clicking in any internal area seems to be ignored.

I'm using QT 5.12.0 on a raspberry Pi3, cross-compiled from a Ubuntu 16.04.

Did I miss any requirement, or skip some configuration?
Thanks.

Solved QWebChannel - js: Uncaught ReferenceError: qt is not defined

$
0
0

@Munish if you checked the "enable Qt Quick compiler" in the build setting, you may get this error. I got it also.

Unsolved Accessibility and QtWebEngine

$
0
0

Have a desktop application built using QtWebEngine 5.12.1, where all the UI (other than menus) lives in a window filled by a QtWebEngine widget. Screen readers see the native menus, of course, but so far I have been unable to get them to "see" into the web content such that they can leverage web accessibility features. When focus goes into the hosted page, the screen reader goes silent.

Is this possible / supposed to work? Same result with the sample QtWebEngine widget-based apps I've tried.

Only tried on Mac so far (using Voiceover), but will also be trying Windows with various screen readers.

Unsolved WebEngineView call signal from website.

$
0
0

Hi,

is it possible to call a signal or method from a website within WebEngineView which calls a function in qt/qml.

I tried to add a click listener to a button but i can't react to the result.

onWindowsCloseRequested reacts to window.close(). Is there a similar slot for custom calls?

Hope you can help me.

Regards,

Unsolved How to have a different initial background color for popups shown with <select>?

$
0
0

I have an application using a QWebEngineView . In this QWebEngineView, I use a <select> to display a popup menu. The application itself and the popup are customized to have a black background color. However when the popup is shown, a white background is initially used: it seems to flash shortly white.

0_1552477420705_WhiteBackground.png

I tried to set an initial black background color to the popup with no success. I made a subclass of QWebEngineView to catch the childEvent events. I was able to get the QEvent::ChildAdded and QEvent::ChildPolished events. I can get the QWidget pointer, however have not been able to change the background color.

void AAAAAAWebEngineView::childEvent(QChildEvent *e)
{
	QWebEngineView::childEvent(e);
	
	if (e->child()->isWidgetType())
	{
		if (e->type() == QEvent::ChildAdded || e->type() == QEvent::ChildPolished)
		{
			QObject *child = e->child();
			QWidget *widget = dynamic_cast<QWidget *>(child);
			if(widget != NULL)
			{
				widget->setStyleSheet("background-color: red;");
			}
		}
	}
}

One of the QWidget I get is a RenderWidgetHostViewQtDelegateWidget with the property m_isPopup set to true, so I guess this is the right QWidget. Trying to change the background color using a style sheet has no effect.

Does anyone know how to set a different initial background color for popups shown with <select>?

Unsolved C++/QWebEngineView: How to obtain the link clicked by "right-click" + "open in new tab"?

$
0
0

In QWebEngineView: How to obtain the link clicked by "right-click" + "open in new tab"?

Actually I've succeded to catch the action of "open in new tab" (after right-click) by doing this:

QAction* openInNewTab = view->pageAction(QWebEnginePage::OpenLinkInNewTab);
connect(openInNewTab, SIGNAL(triggered()), this, SLOT(on_actionNewTab_triggered()));

But in my slot on_actionNewTab_triggered(), I have no possibility to know which url to load. I tried to know if there is something in the data of QAction*

QVariant va;
QAction* action = (QAction*)  sender();
va = action->data();

but the data (va) contains no url !


Unsolved QtWebengine 5.12.2 - Compiling from source (Mac OS X) with webengine-proprietary-codecs not working

$
0
0

Hi everyone,

I've been trying to compile the new version of Qt 5.12.2 on Mac OS X with the option webengine-proprietary-codecs, however, I didn't succeed to pass it to any configure/qmake command (I'm using qt everywhere sources)

I'm passing it to the top level configure:

OPENSSL_LIBS='-L/usr/local/opt/openssl/lib -lssl -lcrypto' ./configure -webengine-proprietary-codecs -opensource -nomake examples -confirm-license -openssl-linked -I /usr/local/opt/openssl/include

But the answer is:

ERROR: Unknown command line option '-webengine-proprietary-codecs'.

When I do a --help on configure, I can see it as one option available.

I also tried to go to the qtwebengine subfolder and do:

../qtbase/bin/qmake -- -webengine-proprietary-codecs

But the answer is:

Project ERROR: You cannot configure qtwebengine separately within a top-level build.

So why the top-level configure doesn't accept the option?

I read a lot of things online, they are mostly about Windows and previous version of Qt, don't know if anything changed recently.

Thanks for your help,

Unsolved QtWebEngine in Qt 5.6: license doubt

$
0
0

QtWebEngine in Qt 5.6: license doubt:
Does anybody know what is exactly the open source license for the Qt WebEngine module in Qt 5.6? My doubt is whether it is LGPLv3 or LGPLv2.1. The information I read in the official Qt page is not clear. Thanks.

Unsolved Debugging QTWebEngine(chromium)

$
0
0

Hello, everybody!

At work the task connected with adding of API for QTWebEngine for internal needs of the company arrived to me. The project uses the old Chromium engine (49) version, it is built for the SailFish OS operating system. I unfortunately did not find any documentation on debugging QTWebEngine. The question arose how to debug part of the QTWebEngine wrapper over Chromium, as well as Chromium itself for a start on Linux. If anyone knows how or who may have a link to the documentation regarding this problem, please help :)

Thanks!

Unsolved Debugging QTWebEngine

$
0
0

Hello, everybody!

At work the task connected with adding of API for QTWebEngine for internal needs of the company arrived to me. The project uses the old Chromium engine (49) version, it is built for the SailFish OS operating system. I unfortunately did not find any documentation on debugging QTWebEngine. The question is how to debug QTWebEngine wrapper over Chromium, as well as Chromium itself in Linux. If anyone knows how or who may have a link to the documentation regarding this problem, please help :)

Thanks!

Unsolved communication from two webengine

$
0
0

Hi, I'm working with a QT-QML-WEBENGINE project.
When I open a QML file connecting a webengine object I can interact with QT / C ++ with the SLOT and SIGNAL system.
Through the onNewViewRequested event, started with window.open, I can act in a QML position through "Connections {target:".
Everything ok but ...
I have not found a way to get back to the control of the webengine.

Example:
in 2 qml files I connect webengine and in each one I load a html page controlled by specific javascript.
main.qml
     tabslipt
         primo.qml (component of main.qml)
             - pageA.html
                - javascript_pageA.js
         secondo.qml (component of main.qml)
             - pageB.html
                - javascript_pageB.js

If I'm on pageB I would like to start a function in javascript_pageA.js
If I'm on pageA I would like to start a function in javascript_pagieB.js

Is it possible according to you?
Thanks in advance

Viewing all 13965 articles
Browse latest View live