Set the window title even if it was set before calling create().
This commit is contained in:
parent
5daea69f74
commit
3086f2098e
@ -10,6 +10,7 @@ HelloWindow::HelloWindow()
|
|||||||
: colorIndex(0)
|
: colorIndex(0)
|
||||||
{
|
{
|
||||||
setSurfaceType(OpenGLSurface);
|
setSurfaceType(OpenGLSurface);
|
||||||
|
setWindowTitle(QLatin1String("Hello Window"));
|
||||||
|
|
||||||
QWindowFormat format;
|
QWindowFormat format;
|
||||||
format.setDepthBufferSize(16);
|
format.setDepthBufferSize(16);
|
||||||
|
@ -88,6 +88,8 @@ void QWindow::create()
|
|||||||
if (!d->platformWindow) {
|
if (!d->platformWindow) {
|
||||||
d->platformWindow = QApplicationPrivate::platformIntegration()->createPlatformWindow(this);
|
d->platformWindow = QApplicationPrivate::platformIntegration()->createPlatformWindow(this);
|
||||||
d->windowFlags = d->platformWindow->setWindowFlags(d->windowFlags);
|
d->windowFlags = d->platformWindow->setWindowFlags(d->windowFlags);
|
||||||
|
if (!d->windowTitle.isNull())
|
||||||
|
d->platformWindow->setWindowTitle(d->windowTitle);
|
||||||
}
|
}
|
||||||
Q_ASSERT(d->platformWindow);
|
Q_ASSERT(d->platformWindow);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user