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

Unsolved QtWebEngineView QML freeze whole PC while playing youtube video (proprietary codec)

$
0
0

Hi,

My Hardware:
Intel Stick PC, Cherry Trail Z8350, 2GB Ram
My OS:
Lubuntu 16.04 with all software updated. GStreamer 1.0 plugin bad, Intel HD Graphics drivers updated, vaapi and ffmpeg (2.8)
My QT build:
Qt 5.10.1 build from source. configurations with qt-xcb, proprietary-codecs and with ICU 60.2, release build.

The problem:
My program use QML QWebEngineView to playback Youtube video. For video without proprietary codec, it works perfectly. However, in order to playback video with special codecs, I build Qt 5.10.1 with proprietary codecs. It is ok to playback those youtube video, however, the program just freeze the system whenever it playback those youtube needs proprietary codec.

Because the system just freeze, I have no way to get any core dump, any one has similar issue? Or, how can I debug this kind of error? Thanks.


Unsolved QtWebEngine unwanted drag and drop.

$
0
0

Hi,

We are using Qt5.9 and creating a fullscreen webview with QML, basically the same code as in the simple QML example.

I have this running on two Linux tablet computers with Debian Jessie and X-server. One has a resistive touch which sends "Left click" events. The other has a capacitive touch which sends "touch" events.

My problem is with the "resistive touch" machine. Very often when trying to press a link we seem to trigger some "drag and drop" feature . A small text-box containing the URL pops up near the pointer and follows it and when we release the pressure on the touch screen nothing happens.

So after googling a lot related to Chromium and WebEngine I still have not found a way to simply disable this behavior. We think its because there usually are some mousemovement when using a finger on the touch, and that this mousemovement is interpreted as "drag". Increasing the amount of movemement needed would probably also solve our issue.

Do anyone have some tips or insight ?

Regards.

Unsolved Any way to configure/pass options to QtWebEngineProcess?

$
0
0

I've recently made a modification to QtWebEngine in order to allow it to respond to client cert requests from a server; however, I'd like to be able to configure and/or specify information about which cert to serve.

So, ideally I'd love to hear that there's an IPC mechanism I can take advantage of between my Qt application (QML) and QtWebEngineProcess, less ideal there's something similar to a qt web profile (which I believe only applies to web engine widget projects?), and worst case I end up rolling my own.

Looking for insights - thanks!

Unsolved Qt5.9 source code compilation(QWebEngine)

$
0
0

Hello there! After a long compilation of the Qt5.9 source code, I got Qt without the QWebengine module. How do you deal with visual studio 2015 compiling Qt5.9 source code to make it finally get QWebengine module?

Unsolved How to disable web security police? I tried many ways but failed. I use qt5.9.2

$
0
0

I run QWebEngineView browser on my arm board. The browser page can not display normally. I think it is "Same Origin Policy" stop the browser loading some files. I have tried three ways, but it seems to useless.
First way,
webView->page()->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
webView->page()->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);

Second way,
Pass argument "--disable-web-security" or "--disable-web-security --user-data-dir='mydir' " to QApplication object.
Third way,
Pass argument "--allow-file-access-from-files" to QApplication object, useless. But i tried command "chrome.exe --allow-file-access-from-files" on Windows, it success.

Anyone can give me some suggestions?

Unsolved How to disable web security policy? I tried many ways but failed. I use qt5.9.2

$
0
0

I run QWebEngineView browser on my arm board. The browser page can not display normally. I think it is "Same Origin Policy" stop the browser loading some files. I have tried three ways, but it seems to useless.
First way,
webView->page()->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
webView->page()->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);

Second way,
Pass argument "--disable-web-security" or "--disable-web-security --user-data-dir='mydir' " to QApplication object.
Third way,
Pass argument "--allow-file-access-from-files" to QApplication object, useless. But i tried command "chrome.exe --allow-file-access-from-files" on Windows, it success.

Anyone can give me some suggestions?

Unsolved QWebEngine browser can not disable web security

Unsolved How to recompile QtWebengine5.6.3 to support XP?

$
0
0

How to recompile QtWebengine5.6.3 to support XP?

There is no official documentation.


Unsolved How to take screen captures

$
0
0

Does anyone have a suggestion?
I have the very same problem: How do I render a QWebEngineView that has received content via QWebEngineView::setHtml().
I do not want to show the Widget.

Snippet:

QImage img(region_width, region_height, QImage::Format_ARGB32); QWebEngineView* webEngineView = new QWebEngineView(); webEngineView->resize(region_width, region_height); webEngineView->setStyleSheet("background:red"); QWebEnginePage* webEnginePage = webEngineView->page(); webEnginePage->settings()>setAttribute(QWebEngineSettings::ScreenCaptureEnabled, true); webEngineView->setHtml("<p style=\"background-color:#FFF067;color:green\"> TEXT</p>"); QPainter p(&img); webEngineView->render(&p, QPoint(0, 0), QRegion(regionSize)); p.end(); img.save("img.png", "PNG", 80);

The result is always an entirely white image, regardless of the given background color, the <p> does not get rendered.

Unsolved How to prevent the white flashes during loading Web Contents

$
0
0

Hi,there! How to prevent the white flashes during loading Web Contents When Using QWebEngineView (QWebEnginePage) setUrl(url) or load(url)? There was no appear
in QWebkit..Thanks very much!!!!!

Unsolved Qt 5.10 / QWebEngineView / Touch Screen - default virtual keyboard not displayed

$
0
0

Hi,

Using "simple browser" sample project of Qt 5.10, I can't have the default virtual keyboard displayed on my Microsoft Surface Pro when selecting an edit field ...
What am i missing ?

Thx

Unsolved How to make pepper plugins in Qt5.9 supported, in addition to "setAttribute (QWebEngineSettings: : PluginsEnabled, true)".

$
0
0

I compiled the Qt5.9 source code (including QWebEngine module) :
Qt WebEngine:
Embedded build...no
Pepper Plugins...yes
Printing and PDF...yes
Proprietary Codecs...yes
Spellchecker...yes
WebRTC...yes
Using system ninja...yes
But in the end, you won't be able to display pepper plugins in QWebEngineView, even if I set up "setAttribute (QWebEngineSettings: : PluginsEnabled, true)".

Solved QtWebEngine compilation with proprietary codecs doesn't work

$
0
0

@maximus Have you solved the problem?Is there a complete step reference?

Solved QtWebEngine --register-pepper-plugins

$
0
0

@maximus I have compiled Qt5.9.3, but I just don't know how to let QWebEngine display my pepper plugins.

Unsolved "onRenderProcessTerminated" is not availble due to component versioning

$
0
0

Does anyone has this typical "is not availble due to component versioning" with WebEngineView.onRenderProcessTerminated ?

I imported
QtQuick 2.10
QtQuick.Window 2.2
QtQuick.Controls 2.1
QtWebEngine 1.5

The trick of using Connections does not work in this case. It responded 'Cannot assign to non-existent property "onRenderProcessTerminated"'


Unsolved How to enable Qt to support nacl ppapi plugins?

$
0
0

Note: The use of this plug-in requires two steps. First, the plug-in function is opened.Second: registration of plug-ins;I now need to load this plugin from the ppapi in qwebengine, but I don't know how Qt registers the plug-in.

Unsolved How to disable user-text-selection without using CSS Stylesheet?

$
0
0

I am using the QtWebengine in Version 5.9.4 based in Chromium 56.

I've tried to find an option to disable the text selection on html pages in the source code of my QT Project, but I did not found any option to do this.

I know the option, using CSS Stylesheets, but this is no possible solution for my project because the customers often implements this option not in their sourcecode stylesheets and don't want to change it afterwards.

Is their any possibility to change this behavior in the QtWebEngine Framework or do I need to find a solution on the Chromium based source code?

Unsolved Can't run minimal Qt Quick WebEngine example with hardware rendering

$
0
0

I'm starting a new project with Qt, and part of that project will involve using QtWebEngine. I'm new to Qt, so I'm trying to fire up an example to tinker with - the example being "WebEngine Qt Quick Minimal Example". When running the example in debug mode with the on a fresh installation of Qt with the latest versions of everything (Qt Creator 4.6.0, Qt 5.10.1/Qt 5.11, and MSVC2017 64bit), the application outputs the following:

Starting C:\Qt\Examples\Qt-5.11.0\webengine\build-minimal-Desktop_Qt_5_11_0_MSVC2017_64bit-Debug\debug\minimal.exe...
QML debugging is enabled. Only use this in a safe environment.
[2316:7748:0329/141148.989:ERROR:gl_surface_wgl.cc(372)] wglCreatePbufferARB not available.
[2316:7748:0329/141148.989:ERROR:gl_surface_wgl.cc(372)] wglCreatePbufferARB not available.
[2316:7748:0329/141148.989:ERROR:gl_surface_qt.cpp(751)] Requested OpenGL implementation is not supported. Implementation: 1
[2316:7748:0329/141148.989:ERROR:gl_surface_qt.cpp(751)] Requested OpenGL implementation is not supported. Implementation: 1
ASSERT failure in Q_UNREACHABLE(): "Q_UNREACHABLE was reached", file C:/Users/qt/work/qt/qtwebengine/src/core/gl_surface_qt.cpp, line 752

And along with that, the following error message pops up:

However, if I tell the application to use software rendering via QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);, then the application works and displays the webpage (as expected). I'm a bit stuck as I can't imagine my GPUs don't support whatever OpenGL implementation it's looking for (this all takes place on a Windows 10 Pro 1709 machine that has two NVIDIA GTX 1080s - the error occurs regardless of the cards being in SLI mode or not). After clicking that Ignore button twice (I assume it tries once per card), it displays the webpage, but with software rendering enabled (even if I don't set that attribute). In release mode, it simply crashes the moment it starts. Can anyone shed some light on what I should look into to figure out why WebEngine just won't work with hardware rendering for me?

Unsolved webengine load a html(contain a video),but can't play MP4。

Unsolved QWebChannel: how to register custom QObject types

$
0
0

Hi all,
I'm using the example webchannel/standalone of Qt 5.9.4, I modified the "core" QObject that is registered on the QWebChannel to add a property that returns an object:
Q_PROPERTY(MyObject * currentObject READ currentObject NOTIFY currentObjectChanged)

MyObject is a custom QObject with properties and slots. One of the property is a QString "title". It is registered with Q_DECLARE_METATYPE(MyObject*), and also with qRegisterMetaType<MyObject*>("MyObject*");

In my index.html, I have a script that uses core.currentObject.title. It is used in a REACT component like that:
class MyObjectextends React.Component {
render() {
return (
<div>
<div>{'Object: '} {core.currentObject ? core.currentObject.title: 'No Object'} </div>
);
}
}

I'm re-rendering this component when I receive the currentObjectChanged signal. So when I first start the page I see 'No Object' and as soon as I receive the currentObjectChanged my page is updated: but instead of seeing the title I see nothing.
In the Chrome 'Inspect' console I don't have errors. In the watch I can see core.currentObject, however I don't see its properties/slots, like I do for the core object.

How do I register the prototype for my custom QObject to the scripting?

I cannot call channel->registerObject(QStringLiteral("myobject"), myobject); because when I set-up the channel the instance of the object is not yet available.
I know how to register a custom QObject* type to QScriptEngine, but I don't see how to do the equivalent on the QWebChannel.
I looked into QMetaObjectPublisher but I'm getting nowhere.

Any help is appreciated

Thanks

Viewing all 13965 articles
Browse latest View live