QWebView does not render checkbox, and radio button propoerly on

MacOSX.

In order to fix it, we need to set 'style' to 'funsion' on MacOSX.

Reference:
https://bugreports.qt.io/browse/QTBUG-43366
This commit is contained in:
Neel Patel 2016-06-02 15:15:53 +05:30 committed by Ashesh Vashi
parent 2610eaefbe
commit b64868079a

View File

@ -64,6 +64,10 @@ BrowserWindow::BrowserWindow(QString url)
QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
#endif
#ifdef __APPLE__
m_mainWebView->setStyle(QStyleFactory::create("Fusion"));
#endif
m_tabGridLayout->addWidget(m_mainWebView, 0, 0, 1, 1);
m_tabWidget->addTab(m_pgAdminMainTab, QString());
m_tabWidget->setCurrentIndex(0);