Make the QML window look the same across different platforms

  • I am using Qt Quick to create a window application. Window and ApplicationWindow qml type is used to create windows. But the looks of the window changes across different platforms. Is there any way so that windows look alike across all platforms?

  • Moderators

    You mean the title bar and the "minimize", "maximize" and "close" buttons? That part is not handled by Qt but by the operating system.

    The only way to get around it is to disable the title bar and construct it by hand. See, especially Qt::FramelessWindowHint. You'll need to handle various window events yourself though, as this flag disables the native handling.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.