Skip to content

Return 0 in QWindow::winId in case of failed platform window creation

Task-number: QTBUG-114613
Pick-to: 5.15 6.5 6.6
Change-Id: I93184d95f8f448ab115570a18cdb720449a0637d
Reviewed-by: Tor Arne Vestbø <>
(cherry picked from commit 63824363ab4844816a4ea16a4d315c74ae21344a)

Added the following doc fix so that our backport comment has the necessary context.

Doc: note QWindow::winId() will cause platform window creation

Worth it to emphasize this, as such a side effect from a const
accessor may well be unexpected.

Change-Id: I0b70d81927e0b66799cbe736ce5d488e2ec77ce0
Reviewed-by: Tor Arne Vestbø <>
Reviewed-by: Giuseppe D'Angelo <>
Reviewed-by: Mikołaj Boc <>
(cherry picked from commit b1bb732639be849b225db635a725b3c19881380c)

Merge request reports