Yes, indeed it should be quint32. Note that I mostly ported the code from Qt4, and it was "long" there. Also, notice that this patch went upstream since Qt 5.1, so the code should be fixed upstream too.
I filed https://bugreports.qt-project.org/browse/QTBUG-34861, I'll try to get some time to work on that. ** Changed in: qtbase-opensource-src (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1251262 Title: Qt5 windows may be randomly unmapped due to assumption sizeof(long)==4 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1251262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs