Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtWebEngineWidgets not showing checkboxes properly
Forum Updated to NodeBB v4.3 + New Features

QtWebEngineWidgets not showing checkboxes properly

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thaxila
    wrote last edited by
    #1

    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.chrome_checkbox.png

    But the QtWebEngine simplebrowser does not show the checked status of Syslog checkbox, even though it is checked.
    qtwebengine_checkbox.png

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Thaxila
        wrote last edited by
        #3

        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?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote last edited by
          #4

          That sounds like a strange constraint to apply...
          Did you check the bug report system just in case someone already mentioned such a behavior ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Thaxila
            wrote last edited by
            #5

            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.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote last edited by
              #6

              Hence my suggestion to check the bug report system.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • T Offline
                T Offline
                Thaxila
                wrote last edited by
                #7

                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.

                JonBJ 1 Reply Last reply
                0
                • T Thaxila

                  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.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote last edited by JonB
                  #8

                  @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....

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    Thaxila
                    wrote last edited by Thaxila
                    #9

                    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?

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved