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

Unsolved Passing/Changing Arguments to QtWebengineProcess

$
0
0

Did you find from where the options are passed to the QtWebengineProcess ?


Solved Qt 5.7: QtWebEngineWidgets not working on Linux

$
0
0

mark
qtwebengine_resources.pak + qtwebengine_resources_100p.pak+ qtwebengine_resources_200p.pak

Unsolved get source code from QWebEnginePage in QWebEngineView

$
0
0

I want to get the source code of a web page opened in QWebEngineView I use toHtml() function in QWebEnginePage Class like this

    QWebEnginePage *page = ui->widget->page();
    QString HTML = "";
    page->toHtml([&HTML](QString html){qDebug() << "code \n\n\n" << html;});

the source code of html page appeared in qDebug good without problem
the problem here is when I want to use HTML string outside the function when I show the size of the HTML varible it is equal to zero
I tried this

    QWebEnginePage *page = ui->widget->page();
    QString HTML = "";
    page->toHtml([&HTML](QString html){HTML = html;}); // crash
qDebug() << "i want to use HTML here outside the function = " << HTML;

but the app crash show so what should I do so I put the HTML data in the HTML variable so I can use it outside the function
Thanks in advance

Unsolved WebSockets not working, use of Google Firebase causes render crash

$
0
0

Ok, it seems that WebSockets don't work fore me. If I force Firebase to use long-polling via

Firebase.INTERNAL.forceLongPolling();

before creating the Firebase object, then it works.

I have webengine 5.9.1 built against qt 5.6.2. Has anyone tried websockets in this constellation?

Solved QtWebEngine compilation with proprietary codecs doesn't work

$
0
0

Hi,
I do exactly what is explaining on this link https://stackoverflow.com/questions/41611445/unable-to-get-mp3-support-with-qtwebengine

when I execute:
C:\Qt\5.7\msvc2015\bin\qmake WEBENGINE_CONFIG+=use_proprietary_codecs

I have on return:
Proprietary codecs (H264, MP3).... Enabled
Geolocation....................... Enabled

But, on the command: nmake
I have on return some error:
Qt5WebView_resource.rc(1) : fatal error RC1015: cannot open include file 'windows.h'.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows Kits\10\bin\x86\rc.EXE"' : code retour '0x1'
Stop.
NMAKE : fatal error U1077: 'D:\InstallationApplis\VisualStudio2015\VC\bin\nmake.exe' : code retour '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : code retour '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : code retour '0x2'
Stop.

Is there any other way to integrate mp3 and mp4 codecs into qtwebengine?

Unsolved C++ from WebView

$
0
0

Is there any way to call c++ functions from QtWebView?

Unsolved Web Application Development Services

$
0
0

Web Application Development Services
STS Software Ltd. has offered web application development services since 2010, we’re very focused on ASP.NET, AngularJS, ReactJS and other modern technologies. That makes us become a strong candidate for your web application development projects.
We are a leading Vietnam Agile web application development company with 60 software engineers, we have been working in web application development outsourcing services for 12 years, serving about 200 clients from Australia, France, USA, Singapore, Norway, Sweden...
TECHNOLOGIES USED IN OUR WEB DEVELOPMENT SERVICES:

  • Microsoft Azure, ASP.NET web development, SignalR, NodeJS, AngularJS, Bootstrap..
  • Laravel, Wordpress, PHP web development, and CodeIgniter
  • HTML5, CSS3, Bootstrap, jQuery, NodeJS, AngularJS, ReactJS
  • Web wireframe: Uxpin, Invision
  • Web UI design: PTS, AI, Skecth3

Unsolved UHD font rendering problem

$
0
0

I am using KaOS Linux and I have problems with font rendering in UHD.

I am using KaOS Linux and have some problems with font rending with programs using qtwebengine.

Font rending problem exists with larger and smaller system fonts.

Picture of Quipzilla using qtwebengine
Picture of Quipzilla using qtwebengine

Picture of Otter Browser not using qtwebengine
Picture of  Otter Browser not using qtwebengine

Discussions here and here.

Is there a bug open for the problem? I could not find one, but as a simple user, I may have missed it.


Unsolved Quicknanobrowser segmentation fault when playing youtube videos

$
0
0

The quicknanobrowser is producing segmentation fault when a link from youtube to play videos is clicked, when running with the command

./quicknanobrowser -platform wayland

Please help me with this.

Unsolved How do you extract data from QWebview

$
0
0

I have a webpage that loads fine. I would like to extract the contents of that page.
the id of it is cctext. Could somebody please give me a simple working example on how to extract data from qwebengineview.

QString path("C:\\Temp\\x.html");
   QFile file(path);
   QString source;
   file.open(QIODevice::ReadOnly);
   source = file.readAll();
   file.close();

   page = new QWebEnginePage();
   page->load(QUrl::fromLocalFile(path));
   ui->widget->setPage(page);
   ui->widget->setContextMenuPolicy(Qt::NoContextMenu);

   //QWebEngineScript x;
   //x.setSourceCode("document.getElementById(\"cctext\");");
   //page->scripts().insert(x);
   //qDebug() <<  page->scripts().toList();

   page->runJavaScript("'Java' + 'Script'", [](const QVariant &result){ qDebug() << result; });
   //page->runJavaScript("document.getElementById(\"cctext\");", [](const QVariant&result){ qDebug() << result.toString();});

   //page->runJavaScript("'Java''' 'Script'", [](const QVariant &result){ qDebug() << result; });

Unsolved QObject registered to QtWebChannel cannot be accessed in javascript world synchronously when used with Qtwebengine

$
0
0

We are planning to use Qt5.7.1 and have some existing applications on qtwebkit which expect to access methods in javascript world synchronously. These are slot methods of QObject registered using addToJavaScriptWindowObject using to QWebPage frame.
When we port to Q5.7.1 these are registered to QtWebChannel object of QWebEnginePage. Now these methods are asynchronous.

Is there any alternative for this to make these calls synchronous?

Given that QtWebengine uses chromium and it internally spawns a different process and since these queries happens over IPC may be these are designed as async. But chromium V8 also supports synchronous IPC communication, so is it possible to support this in future if there is no way to acheive this currently?

Unsolved Problem with QT webengine hardware acceleration

$
0
0

Hi guys, I had used qt and webengine in my project. but i found my web run slowly. i had checked my config with 'chrome://gpu', the hardware acceleration was not enable by default.
how i can enable the hardware acceleration?
thanks.
0_1502709881563_20170814192223.png

Unsolved qwebengine + webgl does not work on some windows hardware

$
0
0

Hello,

We've run into a problem with viewing webgl via qwebengine. With a small test application in Qt 5.9.1,

    QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL,true);
    QApplication app(argc,argv);
    auto webWidget = new QWebEngineView();
    webWidget->settings()->setAttribute(QWebEngineSettings::WebGLEnabled,true);
    webWidget->setUrl(QUrl("http://webglreport.com/"));
    webWidget->resize(1000,800);
    webWidget->show();
    return app.exec();

the test page states that webgl is not available, and indeed pages with actual webgl content are not viewable. "× This browser supports WebGL 1, but it is disabled or unavailable."

On a recent laptop with Intel HD P530, webgl sometimes works if --ignore-gpu-blacklist is provided on the command line. On a Surface Pro 3 with Intel HD 5000 graphics (our actual target device), it doesn't work at all. On both computers, viewing the same web page in Chrome browser works fine.

We tried rebuilding qt with the patch described at the end of this thread, but observe the same behavior (except that 'opengl context cannot be shared' messages disappeared).

We've also tried using different opengl versions (desktop, software, and gles) via

QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL,true);

No combination of flags seems to work. The issue also does not seem to be fixed in qt 5.10.0 alpha release. Can anybody provide assistance with this issue, or give us guidance as to how to track down what's going wrong?

Thanks in advance.

Unsolved qtwebengine + webgl does not work on some windows hardware

$
0
0

Hello,

We've run into a problem with viewing webgl via qtwebengine. With a small test application in Qt 5.9.1,

    QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL,true);
    QApplication app(argc,argv);
    auto webWidget = new QWebEngineView();
    webWidget->settings()->setAttribute(QWebEngineSettings::WebGLEnabled,true);
    webWidget->setUrl(QUrl("http://webglreport.com/"));
    webWidget->resize(1000,800);
    webWidget->show();
    return app.exec();

the test page states that webgl is not available, and indeed pages with actual webgl content are not viewable. "× This browser supports WebGL 1, but it is disabled or unavailable."

On a recent laptop with Intel HD P530, webgl sometimes works if --ignore-gpu-blacklist is provided on the command line. On a Surface Pro 3 with Intel HD 5000 graphics (our actual target device), it doesn't work at all. On both computers, viewing the same web page in Chrome browser works fine.

We tried rebuilding qt with the patch described at the end of this thread, but observe the same behavior (except that 'opengl context cannot be shared' messages disappeared).

We've also tried using different opengl versions (desktop, software, and gles) via

QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL,true);

No combination of flags seems to work. The issue also does not seem to be fixed in qt 5.10.0 alpha release. Can anybody provide assistance with this issue, or give us guidance as to how to track down what's going wrong?

Thanks in advance.

Unsolved google unit test qwebview engine.

$
0
0

I setup a project with a library, main gui , and a unit test.
I want to unit test the library functionality mainly that i am getting the right values from the qwebengineview.
in my main gui i get the correct output in the console.
but when in the unit test i dont get any output. i think i have a problem with the event loop.

could you please let me know what i am doing wrong.

#include <gtest/gtest.h>
#include <gmock/gmock-matchers.h>

#include "rotationtestlibrary.h"
#include <QDebug>
#include <QLibrary>

using namespace testing;



TEST(FirstTest, HelloWorld)
{
    QWidget *widget = new QWidget();
    RotationTestLibrary *rl = new RotationTestLibrary(widget);

    // rl is getWelcome is always empty
    EXPECT_EQ(rl->getWelcome(),QString("Header"));

    delete widget;
}
#include "tst_rotationtest.h"

#include <gtest/gtest.h>
#include "rotationtestlibrary.h"
#include <QApplication>


int main(int argc, char *argv[])
{
    ::testing::InitGoogleTest(&argc, argv);

    QApplication app(argc,argv);
    return RUN_ALL_TESTS();
    app.exec();
}

Unsolved qtwebengine + webgl on windows, black geometry?

$
0
0

On some windows hardware, using a qwebengineview showing a page with webgl, objects appear very dark or black. Though it may be a texturing issue, nearly all of the examples on webglsamples.org and threejs.org seem fine except lighting-based ones.

For instance,
https://threejs.org/examples/#webgl_lights_pointlights or
https://threejs.org/examples/#webgl_lights_hemisphere
the main geometry is completely black when viewing via qtwebengine on our surface pro 3, but on the same computer looks fine via chrome browser. And the same qtwebengine app works fine on a laptop with nvidia graphics.

Any ideas on what's going on here?

Unsolved Thiết kế web giá rẻ chuẩn seo tại Đà Nẵng

$
0
0

if i guess right.

This is an ad post.

Can the administrator delete it?

Unsolved Which one to use: QtWebView and QtWebEngine

$
0
0

Hi,

So that means we can't use QtWebView for windows, right?

Unsolved Qt5: can WebGL work with ANGLE on Windows via QtWebEngine?

$
0
0

Yes, you're right - it's an optimus laptop. Is this a factor because of the Intel GPU? And if so, is it known that ANGLE + WebGL does not work on this hardware?

Unsolved QtWebEngine YouTube live stream shows only spinner.(with using Flashplayer)

$
0
0

Re: How to stream live content from YouTube using QWebEngineView

Hi out there. I have been using the advice as mentioned in the link above, as I also did hit the HTML5 problem when wanting to play a YouTube live stream. It is also not working in the Qt Demo Browser example. So do not know how to resolve.

Problem:
I do not get a YouTube live stream in the window. It does continue to spin (hourglass), as if it is loading. When I slide the YouTube progress bar back I do see the historical snapshots passing by.

Question:
Who know the solution for this problem?

Set-up:

Screenshot:
0_1503216582912_Screen Shot 08-20-17 at 10.05 AM.PNG

Viewing all 13965 articles
Browse latest View live