From tgl at ivu.de Fri Jun 17 08:53:06 2016 From: tgl at ivu.de (Tassilo Glander) Date: Fri, 17 Jun 2016 06:53:06 +0000 Subject: [Qtwebengine] black screen when locale is set Message-ID: <8E71479CD010574DAC0634D4695F0BFCD2D83C58@exch-bln01> Dear List, I get a black screen where the browser widget is supposed to be when I set the locale to German (de-DE, others also do not work). If I skip this setting, or if I set it to others (examples: en-US, en-GB, zh-CN), the web page renders as expected. I build qt locally on Windows 7, Visual Studio2015 SP2, using the Windows 10 SDK and could reproduce the behavior in qt versions 5.5.1, 5.6.0 and dev, so I guess it occurs everywhere. However, I could not reproduce this with the precompiled version of Qt (official download, I used 5.6.1). So I suspect it to be an issue of my build and would like to ask for opinions. Could it be about the specific Windows SDK? I configure with configure -confirm-license -opensource -nomake examples -nomake tests -debug-and-release -force-debug-info -platform win32-msvc2015 Below you find a minimal example that reproduces the error. Best, Tassilo #include "QMainWindow" #include "QLabel" #include "QWebEngineView" #include "QApplication" #include int main(int argc, char *argv[]) { // works //std::locale loc("en-GB"); //std::locale loc("en-US"); //std::locale loc("en-NZ"); //std::locale loc("af-ZA"); //std::locale loc("zh-CN"); // if one of the following locales are set, black screen is shown instead of web page std::locale loc("German_germany"); //std::locale loc("de-DE"); //std::locale loc("nl-NL"); //std::locale loc("cs-CZ"); //std::locale loc("es-ES"); //std::locale loc("vi"); std::locale::global(loc); QApplication app(argc, argv); QMainWindow* mainWindow = new QMainWindow(); QWebEngineView* webView = new QWebEngineView(mainWindow); webView->setUrl(QUrl(QString("http://www.google.de"))); mainWindow->setCentralWidget(webView); mainWindow->show(); return app.exec(); } From Kai.Koehne at qt.io Tue Jun 21 15:51:26 2016 From: Kai.Koehne at qt.io (Kai Koehne) Date: Tue, 21 Jun 2016 13:51:26 +0000 Subject: [Qtwebengine] black screen when locale is set In-Reply-To: <8E71479CD010574DAC0634D4695F0BFCD2D83C58@exch-bln01> References: <8E71479CD010574DAC0634D4695F0BFCD2D83C58@exch-bln01> Message-ID: Hi Tassilo, I don't think this is a known issue. Would you mind filing it under bugreports.qt.io (https://bugreports.qt.io/browse/QTBUG/component/20522) ? Thanks Kai > -----Original Message----- > From: QtWebEngine [mailto:qtwebengine-bounces+kai.koehne=qt.io at qt- > project.org] On Behalf Of Tassilo Glander > Sent: Friday, June 17, 2016 8:53 AM > To: qtwebengine at qt-project.org > Subject: [Qtwebengine] black screen when locale is set > > Dear List, > I get a black screen where the browser widget is supposed to be when I set > the locale to German (de-DE, others also do not work). If I skip this setting, or > if I set it to others (examples: en-US, en-GB, zh-CN), the web page renders > as expected. > > I build qt locally on Windows 7, Visual Studio2015 SP2, using the Windows 10 > SDK and could reproduce the behavior in qt versions 5.5.1, 5.6.0 and dev, so I > guess it occurs everywhere. However, I could not reproduce this with the > precompiled version of Qt (official download, I used 5.6.1). > > So I suspect it to be an issue of my build and would like to ask for opinions. > Could it be about the specific Windows SDK? I configure with configure - > confirm-license -opensource -nomake examples -nomake tests -debug-and- > release -force-debug-info -platform win32-msvc2015 > > Below you find a minimal example that reproduces the error. > Best, > Tassilo > > #include "QMainWindow" > #include "QLabel" > #include "QWebEngineView" > #include "QApplication" > #include > > int main(int argc, char *argv[]) > { > // works > //std::locale loc("en-GB"); > //std::locale loc("en-US"); > //std::locale loc("en-NZ"); > //std::locale loc("af-ZA"); > //std::locale loc("zh-CN"); > > // if one of the following locales are set, black screen is shown instead of > web page > std::locale loc("German_germany"); > //std::locale loc("de-DE"); > //std::locale loc("nl-NL"); > //std::locale loc("cs-CZ"); > //std::locale loc("es-ES"); > //std::locale loc("vi"); > std::locale::global(loc); > > QApplication app(argc, argv); > QMainWindow* mainWindow = new QMainWindow(); > QWebEngineView* webView = new QWebEngineView(mainWindow); > webView->setUrl(QUrl(QString("http://www.google.de"))); > mainWindow->setCentralWidget(webView); > > mainWindow->show(); > return app.exec(); > } > > > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine From tgl at ivu.de Tue Jun 28 10:39:25 2016 From: tgl at ivu.de (Tassilo Glander) Date: Tue, 28 Jun 2016 08:39:25 +0000 Subject: [Qtwebengine] black screen when locale is set In-Reply-To: References: <8E71479CD010574DAC0634D4695F0BFCD2D83C58@exch-bln01> Message-ID: <8E71479CD010574DAC0634D4695F0BFCD2D89656@exch-bln01> Ok, I filed it under https://bugreports.qt.io/browse/QTBUG-54397 > -----Ursprüngliche Nachricht----- > Von: Kai Koehne [mailto:Kai.Koehne at qt.io] > Gesendet: Dienstag, 21. Juni 2016 15:51 > An: Tassilo Glander ; qtwebengine at qt-project.org > Betreff: RE: black screen when locale is set > > Hi Tassilo, > > I don't think this is a known issue. Would you mind filing it under > bugreports.qt.io (https://bugreports.qt.io/browse/QTBUG/component/20522) > ? > > Thanks > > Kai > > > -----Original Message----- > > From: QtWebEngine [mailto:qtwebengine-bounces+kai.koehne=qt.io at qt- > > project.org] On Behalf Of Tassilo Glander > > Sent: Friday, June 17, 2016 8:53 AM > > To: qtwebengine at qt-project.org > > Subject: [Qtwebengine] black screen when locale is set > > > > Dear List, > > I get a black screen where the browser widget is supposed to be when I > > set the locale to German (de-DE, others also do not work). If I skip > > this setting, or if I set it to others (examples: en-US, en-GB, > > zh-CN), the web page renders as expected. > > > > I build qt locally on Windows 7, Visual Studio2015 SP2, using the > > Windows 10 SDK and could reproduce the behavior in qt versions 5.5.1, > > 5.6.0 and dev, so I guess it occurs everywhere. However, I could not > > reproduce this with the precompiled version of Qt (official download, I used > 5.6.1). > > > > So I suspect it to be an issue of my build and would like to ask for opinions. > > Could it be about the specific Windows SDK? I configure with configure > > - confirm-license -opensource -nomake examples -nomake tests > > -debug-and- release -force-debug-info -platform win32-msvc2015 > > > > Below you find a minimal example that reproduces the error. > > Best, > > Tassilo > > > > #include "QMainWindow" > > #include "QLabel" > > #include "QWebEngineView" > > #include "QApplication" > > #include > > > > int main(int argc, char *argv[]) > > { > > // works > > //std::locale loc("en-GB"); > > //std::locale loc("en-US"); > > //std::locale loc("en-NZ"); > > //std::locale loc("af-ZA"); > > //std::locale loc("zh-CN"); > > > > // if one of the following locales are set, black screen is shown > > instead of web page > > std::locale loc("German_germany"); > > //std::locale loc("de-DE"); > > //std::locale loc("nl-NL"); > > //std::locale loc("cs-CZ"); > > //std::locale loc("es-ES"); > > //std::locale loc("vi"); > > std::locale::global(loc); > > > > QApplication app(argc, argv); > > QMainWindow* mainWindow = new QMainWindow(); > > QWebEngineView* webView = new QWebEngineView(mainWindow); > > webView->setUrl(QUrl(QString("http://www.google.de"))); > > mainWindow->setCentralWidget(webView); > > > > mainWindow->show(); > > return app.exec(); > > } > > > > > > _______________________________________________ > > QtWebEngine mailing list > > QtWebEngine at qt-project.org > > http://lists.qt-project.org/mailman/listinfo/qtwebengine