@SGaist
Can you tell me if this SSL problem also happens on your OS ?
quicknanobrowser and youtube - SSL connection error
Unsolved QWebEngineView crashes on view->page() or view->load(url)
I'm trying to get a simple project going with QtWebEngine using Qt 5.6.0 beta. Problem is, it crashes on me before I can do much of anything.
_view = new QWebEngineView(parentWidget);
QWebEnginePage *pageTest = _view->page(); // CRASH
_view->load( url ); // CRASH
Either of the two lines above cause a crash. If you want more details on where the crash is happening, see my full post here:
http://stackoverflow.com/questions/35354581/qwebengineview-crashes-on-load-or-page-method
Am I missing something? I used to create a QWebView in a similar way, and it worked just fine. I've followed the porting guide and the docs here show 3 lines of setup code similar to my own.
Help?!
-Vern
Unsolved QtWebKit to QtWebEngine migration problem
I have a "problem" with this on one of my computers, I load a .html file to run google maps, inside the html file there is this code: <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
on my main computer everything work OK but on the other I need to change to: <script src="http://maps.googleapis.com/maps/api/js?v=3.exp"></script> .
with QtWebKit https work on both computers.
Arch Linux
Qt Creator 3.6.0
Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)
Built on Dec 15 2015 01:01:12
From revision b52c2f91f5
Unsolved Using QWebEngineUrlRequestInterceptor to get AJAX POST data?
I'd like to intercept POST requests made by JavaScript, read the POST data, and send a reply. Formerly with QWebKit, I used QNetworkAccessManager to do this.
With Qt 5.6, I had been hoping to use QWebEngineUrlRequestInterceptor to do the same.
However, I don't see any way to read the POST data. It gives me other information about there request just fine (such as the URL). Any idea how I can get the POST data?
Unable to run QtWebEngine application from /Applications folder on OSX 10.11.2
Hello all,
I'm having trouble running my Qt 5.5.1_2 app from the /Applications
folder. I've created a Release version of the app using xcode's Product > Build For > Profiling
. The .app package was then bundled with Frameworks and plugins using /usr/local/Cellar/qt5/5.5.1_2/bin/macdeployqt pt.app -executable=pt.app/Contents/MacOS/pt
.
At this point, if I try to run the app using the command line inside the original folder, everything works ok. However, if I copy the .app bundle to /Applications
and attempt to run it from there, I get errors or crashes.
If I run from the command line inside the /Applications
folder, I get the following error:
dyld: Library not loaded: @executable_path/../../../../../../../QtCore.framework/QtCore
Referenced from: /Applications/pt.app/Contents/Frameworks/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess
Reason: image not found
If I run by double clicking the package, it crashes (crash log at the bottom).
Here is the otool output for the build folder version:
pt.app/Contents/MacOS/pt:
@loader_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.5.0, current version 5.5.1)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
@loader_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtQml.framework/Versions/5/QtQml (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtSerialPort.framework/Versions/5/QtSerialPort (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtWebChannel.framework/Versions/5/QtWebChannel (compatibility version 5.5.0, current version 5.5.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 104.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.0.0)
Here is the otool (otool -L /Applications/pt.app/Contents/MacOS/pt) output for the Application folder version:
/Applications/pt.app/Contents/MacOS/pt:
@loader_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.5.0, current version 5.5.1)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
@loader_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtQml.framework/Versions/5/QtQml (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtSerialPort.framework/Versions/5/QtSerialPort (compatibility version 5.5.0, current version 5.5.1)
@loader_path/../Frameworks/QtWebChannel.framework/Versions/5/QtWebChannel (compatibility version 5.5.0, current version 5.5.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 104.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.0.0)
Crash stack:
Date/Time: 2016-02-17 16:32:55.822 -0500
OS Version: Mac OS X 10.11.2 (15C50)
Report Version: 11
Anonymous UUID: 9419D0A2-DB32-56B7-A1B7-8FDFEA4F9DCB
Sleep/Wake UUID: D9F39846-1638-4DAC-8756-257A33BD2644
Time Awake Since Boot: 2200000 seconds
Time Since Wake: 5800 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x18:
-->
__TEXT 0000000105a5d000-0000000105a73000 [ 88K] r-x/rwx SM=COW /Applications/pt.app/Contents/MacOS/pt
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 org.qt-project.Qt.QtWebEngineCore 0x000000010858b62f 0x107571000 + 16885295
1 org.qt-project.Qt.QtWebEngineCore 0x000000010759f71f QtWebEngineCore::WebContentsAdapter::browserAccessible() + 49
2 org.qt-project.QtWebEngineWidgets 0x0000000106d3972f 0x106d28000 + 71471
3 libqcocoa.dylib 0x000000010ac97fbb QCocoaAccessible::unignoredChildren(QAccessibleInterface*) + 27
4 libqcocoa.dylib 0x000000010ac95537 -[QMacAccessibilityElement accessibilityAttributeValue:] + 471
5 com.apple.AppKit 0x00007fff836db164 NSAccessibilityGetObjectForAttributeUsingLegacyAPI + 392
6 com.apple.AppKit 0x00007fff836d97d8 _NSAccessibilityEntryPointValueForAttribute + 1879
7 com.apple.AppKit 0x00007fff836d899e NSAccessibilityChildren + 41
8 com.apple.AppKit 0x00007fff836d8934 NSAccessibilityUnignoredChildrenForOnlyChild + 73
9 libqcocoa.dylib 0x000000010ac80005 -[QNSView(QNSViewAccessibility) accessibilityAttributeValue:] + 101
10 com.apple.AppKit 0x00007fff836db164 NSAccessibilityGetObjectForAttributeUsingLegacyAPI + 392
11 com.apple.AppKit 0x00007fff836da562 NSAccessibilityGetObjectValueForAttribute + 1273
12 com.apple.AppKit 0x00007fff836d9bfa -[NSAccessibilityAttributeAccessorInfo getAttributeValue:forObject:] + 58
13 com.apple.AppKit 0x00007fff836d9504 _NSAccessibilityEntryPointValueForAttribute + 1155
14 com.apple.AppKit 0x00007fff836d899e NSAccessibilityChildren + 41
15 com.apple.AppKit 0x00007fff836dc094 NSAccessibilityUnignoredChildren + 205
16 com.apple.AppKit 0x00007fff836db164 NSAccessibilityGetObjectForAttributeUsingLegacyAPI + 392
17 com.apple.AppKit 0x00007fff836da562 NSAccessibilityGetObjectValueForAttribute + 1273
18 com.apple.AppKit 0x00007fff836d9bfa -[NSAccessibilityAttributeAccessorInfo getAttributeValue:forObject:] + 58
19 com.apple.AppKit 0x00007fff836d9504 _NSAccessibilityEntryPointValueForAttribute + 1155
20 com.apple.AppKit 0x00007fff836d899e NSAccessibilityChildren + 41
21 com.apple.AppKit 0x00007fff83914186 -[NSView(NSViewAccessibility) _accessibilityBasicHitTest:] + 120
22 com.apple.AppKit 0x00007fff839140f4 -[NSView(NSViewAccessibility) accessibilityHitTest:] + 22
23 com.apple.AppKit 0x00007fff83e411cb -[NSWindow(NSWindowAccessibility) accessibilityHitTest:] + 514
24 com.apple.AppKit 0x00007fff83a90620 -[NSApplication(NSApplicationAccessibility) accessibilityHitTest:] + 282
25 com.apple.AppKit 0x00007fff83a72473 CopyElementAtPosition + 294
26 com.apple.HIServices 0x00007fff85c31afb _AXXMIGCopyElementAtPosition + 294
27 com.apple.HIServices 0x00007fff85c3a9da _XCopyElementAtPosition + 388
28 com.apple.HIServices 0x00007fff85c13dad mshMIGPerform + 199
29 com.apple.CoreFoundation 0x00007fff8eca0839 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
30 com.apple.CoreFoundation 0x00007fff8eca07a9 __CFRunLoopDoSource1 + 473
31 com.apple.CoreFoundation 0x00007fff8ec91e1b __CFRunLoopRun + 2171
32 com.apple.CoreFoundation 0x00007fff8ec91338 CFRunLoopRunSpecific + 296
33 com.apple.HIToolbox 0x00007fff8f729935 RunCurrentEventLoopInMode + 235
34 com.apple.HIToolbox 0x00007fff8f72976f ReceiveNextEventCommon + 432
35 com.apple.HIToolbox 0x00007fff8f7295af _BlockUntilNextEventMatchingListInModeWithFilter + 71
36 com.apple.AppKit 0x00007fff836bd0ee _DPSNextEvent + 1067
37 com.apple.AppKit 0x00007fff83a89943 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
38 com.apple.AppKit 0x00007fff839c0196 +[NSWindow(NSWindowResizing) _mouseHysteresisCheck:withExpiration:andDistance:finalMouseLocation:] + 467
39 com.apple.AppKit 0x00007fff838747c3 -[NSWindow(NSWindowResizing) _hitTestWithHysteresisCheck:forEvent:allowWindowDragging:] + 308
40 com.apple.AppKit 0x00007fff83e28b69 -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 1790
41 com.apple.AppKit 0x00007fff83e2afad -[NSWindow _reallySendEvent:isDelayedEvent:] + 212
42 com.apple.AppKit 0x00007fff83783735 -[NSWindow sendEvent:] + 517
43 libqcocoa.dylib 0x000000010ac6e6d7 -[QNSWindow superSendEvent:] + 39
44 libqcocoa.dylib 0x000000010ac6e080 -[QNSWindowHelper handleWindowEvent:] + 432
45 com.apple.AppKit 0x00007fff8377fe49 -[NSApplication sendEvent:] + 2540
46 libqcocoa.dylib 0x000000010ac8581e -[QNSApplication sendEvent:] + 78
47 com.apple.AppKit 0x00007fff836b303a -[NSApplication run] + 796
48 libqcocoa.dylib 0x000000010ac822df QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2191
49 org.qt-project.QtCore 0x0000000106825c1c QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 412
50 org.qt-project.QtCore 0x0000000106828a95 QCoreApplication::exec() + 341
51 MyApp.pt 0x0000000105a62be4 0x105a5d000 + 23524
52 libdyld.dylib 0x00007fff9228b5ad start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x00007fc9f3b00620 rdx: 0x0000000000000084
rdi: 0x0000000000000000 rsi: 0x0000000000000001 rbp: 0x00007fff5a19e8c0 rsp: 0x00007fff5a19e8b0
r8: 0x00007fc9f3b00620 r9: 0x00000000000000c1 r10: 0x0000000100000003 r11: 0x00000000000000c0
r12: 0x00007fff72142fb0 r13: 0x00007fc9f15ad960 r14: 0x00007fc9f15ad960 r15: 0x00007fc9f1588fb0
rip: 0x000000010858b62f rfl: 0x0000000000010202 cr2: 0x0000000000000018
Logical CPU: 0
Error Code: 0x00000004
Trap Number: 14
... More here but cutoff by forum post limit.
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 6237540
thread_create: 0
thread_set_state: 8388
VM Region Summary:
ReadOnly portion of Libraries: Total=303.7M resident=0K(0%) swapped_out_or_unallocated=303.7M(100%)
Writable regions: Total=526.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=526.2M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate.framework 128K 2
Activity Tracing 2048K 2
CG backing stores 40.6M 6
CG image 184K 14
CG shared images 336K 9
CoreAnimation 88K 15
CoreUI image data 2260K 13
CoreUI image file 192K 3
Dispatch continuations 16.0M 2
Foundation 4K 2
Kernel Alloc Once 8K 3
MALLOC 294.1M 50
MALLOC guard page 32K 7
Memory Tag 242 12K 2
Memory Tag 255 547.7M 26
Memory Tag 255 (reserved) 140K 5 reserved VM address space (unallocated)
OpenCL 8K 2
OpenGL GLSL 256K 4
Process Corpse Info 2048K 2
STACK GUARD 56.1M 31
Stack 149.0M 33
VM_ALLOCATE 144K 13
__DATA 21.7M 229
__GLSLBUILTINS 2588K 2
__IMAGE 528K 2
__LINKEDIT 97.4M 24
__TEXT 206.3M 234
__UNICODE 552K 2
mapped file 61.9M 17
shared memory 16.3M 10
=========== ======= =======
TOTAL 1.5G 736
TOTAL, minus reserved VM space 1.5G 736
Model: MacBookPro11,4, BootROM MBP114.0172.B07, 4 processors, Intel Core i7, 2.2 GHz, 16 GB, SMC 2.29f24
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.21.94.136.1a1)
Bluetooth: Version 4.4.3f4 16616, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0256G, 251 GB
USB Device: USB 3.0 Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
Solved QtWebEngine 5.7 uses what version of Chromium?
@SGaist Thank you!
Unsolved QWebEngineView runJavaScript() problem
Hello all.
I faced with some strange behavior in QWebEngineView.
I have a loaded page in QWebEngineView object witch has 'group0' element.
I run next script:
...
QString script = "document.getElementsByName('group0');";
page()->runJavaScript(script, [](const QVariant &v) {qDebug() << v;});
...
It prints
QVariant(QVariantMap, QMap())
But now I need value of first element of 'group0' (or array with several values). I tried to run script:
QString script = "var elems=document.getElementsByName('group0');"
"system.log(elems[0].value);";
page()->runJavaScript(script, [](const QVariant &v) {qDebug() << v;});
But I got
QVariant(Invalid)
Documentation says
Runs the JavaScript code contained in scriptSource.
When the script has been executed, resultCallback is called with the result of the last executed statement.
Note: resultCallback can be any of a function pointer, a functor or a lambda, and it is expected to take a QVariant parameter.
Could you say me how can I return result of the last executed statement from script to callback.
Thank you.
QtWebEngine duplicate touch events
Hello fellow historians,
I checked this issue with Qt 5.5.1 and it is still seems to be an issue.
Did anyone got to fix this in more elegant manner ?
Unsolved HTML Parse by QtWebEngine
Hi; I want to html parse by QtWebEngine for desktop and mobile applications and I included QT += webengine and QT += webenginewidgets in .pro file but I am getting the error: Project ERROR: Unknown module(s) in QT: webenginewidgets (I installed QtWebEngine).
I am using Qt 5.5.1 Community Edition. Also I want to use C++ to html parse.
How can I html parsing in Qt with C++? (desktop and mobile.)
Thanks.
Unsolved Inject QWebChannel into an HTTPS page
Hi, I'm trying to inject qwebchannel.js into a QWebEnginePage with an URL server over HTTPS.
Anyway QWebEngine (chromium) refuses to do so and outputs in the development console this error:
"... was loaded over HTTPS, but requested an insecure script 'qrc:///qtwebchannel/qwebchannel.js'. This request has been blocked; the content must be served over HTTPS."
How can I disable this security feature (maybe only for the qrc:// scheme)?
Thanks.
Solved Qt 5.6 custom user agent not working
Yes I figured it out... The problem is a lot of new documentation (esp. 5.6) doesn't provide even the most simple usage examples even for such a simple thing as changing the user-agent.
Marking as solved.
Unsolved Showing SWF files
Apparently, everything works in Qt 5.6.0...
Unsolved Qt 5.6 WebEngine problem with custom FlashPLayer locations
I opened a bug report QTBUG-51971
[Solved] Unable to run QtWebEngine application from /Applications folder on OSX 10.11.2
Solved QtWebEngineWidgets example crash report
Thanks. I had the same issue but I did not have enough time to investigate. So I will try to update graphics driver as you did.
Unsolved How to get network reply information using QWebEngineView
Hi @GoneWithTheFood,
I haven't used Qt WebEngine personally, but at a quick glance, those two signals might have the following approximate equivalents:
QNetworkAccessManager::finished => QWebEngineView::loadFinished QNetworkAccessManager::sslErrors => QWebEnginePage::certificateErrorNote however, that certificateError is not a signal, but a protected virtual function. I guess this gives more flexibility (it allows you to actually choose how to respond to the error), but probably requires you to sub-class QWebEnginePage to override that virtual method (perhaps to emit your own signal?), then use QWebEngineView::setPage to use an instance of your custom QWebEnginePage class.
Of course, this is all just speculation... I'm sure someone with actual Qt WebEngine experience could offer better advice. But hopefully this gives you something to look at in the meantime.
Cheers.
cookieStore in qml
How can I use cookieStore in a qml application?
I am using QT 5.6 in Ubuntu 14.04.
If I edit a file line, in qml, like
var m_store = webPageView.profile.cookieStore()
QTCreator shows "cookieStore" as a valid field and completes with () after I choose it. But it will cause a run time with message "TypeError: Property 'cookieStore' of object QQuickWebEngineProfile(0x13ba6e0) is not a function".
Unsolved How to empty WebEngine profile
Hi,
I'm trying to find a way to completely clear WebEngine profile in my application.
All files about caches, cookies and various storages are created into this folder:
~/.local/share/qWebChat/QtWebEngine/Default
A sure-working way could be to manually delete the storage folder, but I'm sure that there is a better qt-way to do it.
I'm using Qt 5.5.1 in Linux 64bit.
Thanks.
Solved acceptNavigationRequest only called for explicitly clicked links
I have an application, which shows html-mails in a QWebEngineView. I want to filter requests for external images (or other http-requests). Therefore I have a subclass of QWebEnginePage and implemented the acceptNavigationRequest-method. I set an instance of this subclass via setPage in my QWebEngineView. Then I call setHtml with the mail-body and a local BaseUrl.
But the html-page the acceptNavigationRequest-method isn't called when the html-page is loaded. So all images are shown although the links are absolute (eample: <img src="http://xxx.com/images/yyy.jpg">).
The acceptNavigationRequest-method is only called if I click on a html-link (example <a href="https://xxx.com/zzz">). Is there any possibility, that the method will also be called for external images? Or is there another method to control the requests for images on external server?
I found the solution to my problem. It is possible to supress the automatic loading of images with the QWebEngineSettings::AutoLoadImages attribute.
Solved Unknown Module QWebEngine
@Aleksej-Ivanovic I installed the MSVC community edition and things are working now. Thank you.