Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Undecorated Window
Qt 6.12 LTS is out! See what's new in the release blog

Undecorated Window

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi

    Im wondering how i can create an undecorated window. I want do disable the outside borders and status bar.
    Any Idea? QtQuick.Window does not seem to have such a feature and i was not able to add Qt::FramelessWindowHint.

    Im using QQmlComponent becaus it works so far. Im using Window{} in qml because nothing will be shown if i dont.

    [Code]
    import QtQuick 2.0
    import QtQuick.Window 2.0

    Window {
    width: 360
    height: 360
    property string src
    Image {
    source: src
    anchors.fill: parent
    }
    }

    [/code]

    [code]
    comp = new QQmlComponent(e, QUrl("qml/MultiRegionTypePlayer/main.qml"));
    p = qobject_cast<QQuickWindow*>(comp->create());
    p->setVisible(true);
    [/code]

    1 Reply Last reply
    0
    • D Offline
      D Offline
      diredko
      wrote on last edited by
      #2

      Hi,
      I know a way to do so from both QML and C++

      Window {
          width: 800
          height: 600
          flags: Qt.FramelessWindowHint // This is the part which makes your window undecorated
      
          minimumWidth: 800
          minimumHeight: 600
          visible: true
      }
      

      In C++ code you would use setFlags function.

      Hope this helps)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved