Quantcast
Viewing all 13965 articles
Browse latest View live

Solved Windows 10, USB encrypted by bitlocker do not ask to password?

Another way, Use "bdeunlock.exe" to open the default input usb password of Windows Bitlocker.
Run the command like: "bdeunlock.exe D:". It will show you a dialog to input password as Windows explorer, you do not need to provide Administrator account or password.


Unsolved QWebEnginePage::runJavaScript() doesn't work on an offline page.

Can your page show content when using page->setHtml(byteArr); ?

Unsolved Web Engine/Channel communication fail using signals

Hi,

I use a signal to send an object from the C++ to my web page (in the WebEngine) using the WebChannel.
The signal is correctly triggered, however, the object is always null.
There are no errors in the console.

Here is the piece of code:

index.html

new QWebChannel(socket, function(channel) {
                        window.paymentModule = channel.objects.paymentModule;

                       ...

                       paymentModule.currentStatus.connect(function(status)  {
                            console.log("Status");
                            console.log(status);
                            ...
                        });
};

The class used as paymentModule in javascript:

class WebDevice : public QObject
{
    Q_OBJECT

public:
    WebDevice(const QString &comPort, QObject *parent = 0);

signals:
     void currentStatus(const Status &status);

private slots:
     void onStatusUpdate(const Answer::Status &);
     ...
};


Q_DECLARE_METATYPE(PaymentModule::iUP250::Answer::Status)
Q_DECLARE_METATYPE(Status)

WebDevice::WebDevice(const QString &comPort, QObject *parent)
 {

    qRegisterMetaType<PaymentModule::iUP250::Answer::Status>();
    qRegisterMetaType<Status>("Status");
    connect(&_device, &Layer::Application::statusChanged, this, &WebDevice::onStatusUpdate, Qt::QueuedConnection); // Qt::DirectConnection
 }

 void WebDevice::onStatusUpdate(const Answer::Status &status)
{
     emit currentStatus(Status());
}

All types are registered. Status class as a copy constructor, default constructor and destructor.
It doesn't matter if Status inherit QObject or not, the result is the same.

Sadly there isn't any error in the console. That's why I'm a bit stuck and look for help.
Does anyone have an idea of what I could be doing wrongly ?

Thanks,

Unsolved Different proxy for each QWebEngineView instance?

How do i set different proxy for each QWebEngineView instance?
I know about QNetworkProxy::setApplicationProxy(my_proxy); but it affects
all the instances at one time. in my case i can't afford splitting the "QWebEngineView"s to different applications, as they need to communicate via signals and slots.

Unsolved Supported Codecs in Qt5.7

Is there a list of the codecs supported by the standard QtWebEngine distribution?

I'd prefer to change my video format to something compatible rather than build the webengine with the use_proprietary_codecs config.

Thanks

Unsolved QtWebEngine compilation with proprietary codecs doesn't work

Hello,

I'm in charge of a software which uses Qt SDK and it need the web browser included. We switched to Qt 5.7 to get modern web capabilities. We solved all our migration problems from QtWebkit to QtWebengine, except one thing : MP3 playback. And we really need it.

So I followed this article https://blog.qt.io/blog/2016/06/03/netflix-qt-webengine-5-7/ and somes others on the Internet.

My target is Qt 5.7.1 32bits with MSVC2015. My approach was to download from github the qtwebengine module, supply everything it needs for compilation. I added the line "WEBENGINE_CONFIG+=use_proprietary_codecs" (and in doubt, "WEBENGINE_CONFIG+=proprietary_codecs", I saw it somewhere written that way) to "qtwebengine.pro" file. I saw the log saying "Proprietary codecs (H264, MP3).... Enabled", so I assumed the configuration was ok. The compilation was successful.

Then, my first idea was to copy the new dlls directly over the SDK ones in my application folder. And ... That didn't work.
My second idea was to recompile my application with everything generated by the qtwebengine build. So I replaced all the files from the Qt SDK folder. I added an extra "WEBENGINE_CONFIG+=use_proprietary_codecs" to my own project. The compilation was successful, but I still don't have MP3 support.

So please, is someone here can tell me, how I can get that damned MP3 support ? :'(

Unsolved QWebEngineView inside QGraphicsView with QGraphicsProxyWidget

hi
I have "solved" the issue using the following workarround:

I trigger a infinite event loop using QTimer every 100 to 200 ms (depending on the type of page that is displayed) and force a page refresh by calling update() on the QWebEngineView object.

Unsolved Javascript evaluation not working in developer tools

I've tried it inside a linux VM and it's the same.


Solved QWebEngineView - loadFinished triggered twice for one setUrl?

Fixed by removing the dynamic property "url" in Designer. You can remove with the - bar on top right, I was expecting right click.
I suspect it is because my object were QWebView that are demoted to QWidget and promoted to QWebEngineView, the dynamic property of QWebView were still there
Thanks guys

Solved Replace QWebKit Object.signal.connect()

Solved Issue with display of html file input after building project to msi then install ?

Did anyone meet this problem:
When i built my project with QT creator, webview displayed html file input element correct, but when i built my project to msi and installed it, the display of html file input met problem( text(Choose file) was hidden, and it only showed a button with no text ).

Unsolved Hang on showing a contextual menu

@mpergand The data could be corrupted if you had a bad pointer or something somewhere. That would cause a crash.

I wish I had more to help you, but this project sounds big enough that it would take some real debugging effort to figure out an intermittent hang/crash in a 3rd party webkit, lol. Since I don't have code or the time to dig into that I just don't have much to offer.

Maybe start with a smaller application that does similar things (a test of app of some kind) and see if you can reproduce the break. Then maybe slowly introduce sections of your real app until you get a break? That's a trick I use when i've exhausted all my other debugging skills. I rarely get these kinds of bugs any more after 20+ years of coding though. :)

Unsolved Rebuilding QWebEngine for Netflix support

It would be nice if we could only drop the codecs like with the plugins, rebuilding from scratch on every OS is kind of a pain.
Thanks for considering.

Unsolved drag and drop only available on my https site and not the http

basically that is the point i have a qt 5.7 application that should allow drag and drop, through a normal browser the behaviour is consistent between http and https. But in the case of QtWebEngine case it allows drop files in the https version but not in the http one. Is there some security flag that I am not aware of?

Unsolved https site not able to access local server

yes, i will write an example and share it.

The thing is when i say it 'does not work', is that the request are actually not even arriving to my local server (for any of the paths data should be access). That is why I though is maybe referring to some security configuration of qtwebengine (not allowing request), as Chrome and other browsers do actually contact my local server.


Unsolved Is there a way to install WebEngineWidgets as dev depency in Ubuntu 14.04?

I have an app that I made with Qt and it can be run without installing Qt Creator by just installing the dev dependencies on Linux such as:

sudo apt-get install qt5-default
sudo apt-get install libqt5webkit5-dev
sudo apt-get install libqt5xmlpatterns5-dev

I upgraded the app from Qt 5.2 to 5.7 and now it uses QtWebEngine and QtWebEngineWidgets. My problem is that when I run qmake and make for the upgraded app I get the error message

Project ERROR: Unknown module(s) in QT: webenginewidgets

I've been trying to find a way to install webEngineWidgets as a dev dependency on Linux just like webkitWidgets but I can't seem to find a way to do it. I've read other questions like http://stackoverflow.com/questions/29088564/how-can-i-install-qtwebengine-on-ubuntu but my problem is different since I don't want to install Qt Creator.

Is there a way to install QtWebEngineWidgets as a dev dependency?

Unsolved iconUrlChanged signal not received with custom url scheme

I’am using a custom scheme for a RSS reader
The generated html includes a favicon:

 <link rel="icon" href="favicon.png" sizes="16x16" type="image/png">

In Qt 5.6, I receive the iconUrlChanged able me to set the appropriate icon in the url shield of the toolbar
In Qt 5.7.1, it doesn’t work anymore, neither iconUrlChanged nor iconChanged are received.

Putting some logs shows that the request is correct in the schemeHandler:

RSS requestStarted: QUrl("rss:/favicon.png")
icon QUrl("rss:/favicon.png")
data RSS "image/png" 3806

I expect thereafter to receive the icon in my iconChanged slot, but nothing happens.

On the other hand, i’m questioning myself about the new AutoLoadIconsForPage setting in Qt 5.7
Since Qt 5.5, i’m implementing my own favicon management (loading/caching …), therefore , enable the AutoLoadIconsForPage setting seems unnecessary as it will doing the same job double time.
But if i disable this option, again i don’t receive the iconUrlChanged, so no icon is loaded at all.

Is this the correct behavior ?
and if so what i’m doing wrong ?

Thanks in advance

Unsolved How to port QWebKit's QWebElement to QWebEngine?

I'm porting a Qt5.5 Widgets app that uses QWebKit, to Qt5.8 which only supports QWebEngine (unless I compile WebKit support back in.)

I have this bit of code in the QWebKit based project that aims to render an HTML5 canvas element in the DOM, into a QPainter, for other custom overlay rendering on the C++ side. All that works just fine and as needed in my QWebKit based approach.

But QWebElement no longer exists in the QWebEngine implementation, so how do I port this to do the same? ie. how can I "findFirstElement" to locate a canvas element in the DOM, returning it into a Qt object which I can then render to a QPainter?

Thanks!

void MyWebView::paintEvent(QPaintEvent *event)
{
    QWebView::paintEvent(event);

    // point QWebElement to a canvas in the DOM
    QWebElement el = this->page()->mainFrame()->findFirstElement("#canvas0");

    // render the contents of that canvas into QPainter
    QImage image(el.geometry().width(), el.geometry().height(), QImage::Format_ARGB32);
    QPainter painter(&image);
    el.render(&painter);

    // do a bunch of other custom overlay rendering unrelated to this question

}

Solved How to kill page when it's window is closed?

Unsolved Flash hardware acceleration unavailable on linux?

I tried Qt 5.7, 5.8 and 5.9 on Ubuntu 16.04 all of which fail to have hardware acceleration in Flash. On Windows, I tried Qt 5.8 and it works just fine.

Using the exact same libpepflashplayer.so in google-chrome works fine and chrome://gpu outputs

Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated

and flash.display3D.Context3D.driverInfo outputs "OpenGL".

Using QtWebEngine however, I do not know how to get diagnostic information other than flash.display3D.Context3D.driverInfo outputting "Software Hw_disabled=unavailable"

http://webglreport.com outputs expected values ( as far as I can tell ) for both google-chrome and QtWebEngine.

I did not find anything regarding this matter in the documentation, and I find it a little hard to believe that it's unavailable on linux but working fine on windows, so am I missing some configuration or anything ?

Ty for your time

Edit: An SSCCE would be nothing more but a plugin-enabled QWebEngineView

Viewing all 13965 articles
Browse latest View live