QtWebEngineWidgets not showing checkboxes properly
-
I am using QtWebEngineWidgets -- the simplebrowser in the example projects provided -- to open an application web page.
It is not showing the checked status in the checkboxes of the page.
Chrome browser shows the checked status of the Syslog in green.
But the QtWebEngine simplebrowser does not show the checked status of Syslog checkbox, even though it is checked.
Is there some setting in QtWebEngineView or QtWebEnginePage or QtWebEngineProfile that I can set in the simplebrowser code so that the checkbox status shows properly on the QtWebEngine browser?
-
Hi,
You should add which version of Qt you are using as well as OS.
Can you reproduce that issue with a reduced web content rather than your full web app ? -
I have narrowed down the issue to this. When the mouse click changes the webview, I have to catch the change by the click and redraw/re-render the QtWebView so that the change shows.
Is there a signal that emits when a mouse click changes the webview content, so that I can catch the signal and write a slot to redraw the web page?
-
That sounds like a strange constraint to apply...
Did you check the bug report system just in case someone already mentioned such a behavior ? -
QtWebEngine in Qt6 does not render changes to CSS radio-buttons and checkboxes when the change happens with a mouse click. The change from True->False or False->True happens in radio-buttons, but it is not drawn/rendered on the QtWebEngineView. Similarly, checked->unchecked and unchecked->checked happens with mouse clicks on checkboxes, but the change is not shown on the QtWebEngineView.
I thought it might be possible to capture the state change and redraw the QtWebEngineView so that the change shows. But there is no way to capture state changes in CSS radio-buttons and checkboxes.
In Qt5/QtWebKit the state changes are shown right out of the box without any problems. It is a bug in Qt6/QtWebEngine.
-
Hence my suggestion to check the bug report system.
-
Strangely enough, the version on Linux runs without any of the bugs.
I tried cross compiling the Qt QtWebEngine source from Linux to target Windows, but this fails with various bugs in the build.
I am now trying compiling the source code with Mingw64 on Windows to see if that will get rid of the bugs we see on Windows.
The previous version with bugs was the module pre-compiled with MSVC compilers. -
Strangely enough, the version on Linux runs without any of the bugs.
I tried cross compiling the Qt QtWebEngine source from Linux to target Windows, but this fails with various bugs in the build.
I am now trying compiling the source code with Mingw64 on Windows to see if that will get rid of the bugs we see on Windows.
The previous version with bugs was the module pre-compiled with MSVC compilers.@Thaxila said in QtWebEngineWidgets not showing checkboxes properly:
I am now trying compiling the source code with Mingw64 on Windows to see if that will get rid of the bugs we see on Windows.
Since QtWebEngine (actually the underlying chromium engine) only builds under MSVC, not MinGW, under Windows this is a wasted effort....
-
Thanks for that. Saved me a lot of time.
Can I cross compile from source from Linux (Ubuntu) for Windows using
$ configure -xplatform win32-msvc ...
Would this compile a 32-bit version or a 64 bit version. There is no win64-msvc platform listed.
In any event there is no need for the MSVC compiler to be 64 bit. The 32 bit compiler will work fine, right?