Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43366

QWebView problems with loading checkboxes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.4.0
    • WebKit
    • None
    • Mac OS 10.10.1 Yosemite, standard Qt Community Edition ver. 5.4 with clang x64.

    Description

      When I load any webpage with <input type="checkbox"> field into a QWebView widget on Mac OS 10.10.1 Yosemite the checkbox renders incorrectly. The box itself is rendered in the top left corner of the page, while it label displays in right position.

      Sample code of a simple MainWindow

      MainWindow.cpp
      #include "mainwindow.h"
      #include <QWebView>
      
      MainWindow::MainWindow(QWidget *parent)
          : QMainWindow(parent)
      {
          QWebView* wv = new QWebView(this);
          wv->load(QUrl("http://sislands.com/coin70/week4/chkBoxTest.htm"));
      
          setCentralWidget(wv);
      }
      

      Also, I couldn't open http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_checkbox_get example page in QWebView at all.

      Currently I am experiencing the bug on Mac OS X, on Windows rendering is ok, but I didn't test it on other platforms. On Qt 5.3.2 everything works well.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              iam Kirill Medvedev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes