Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Qt Quick QML Hide Main Window Border

    QML and Qt Quick
    2
    3
    4478
    Loading More Posts
    • 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.
    • M
      matinzk last edited by

      Hi everyone, today I have started programming using Qt Quick with QML on Ubuntu. I am enjoying it very much :)

      A question:

      How can I remove/hide the title of the main window along with the "x" close. minimise and maximise buttons?

      The application will be an image player so I won't need the frame around the main window.

      I have created a project by following the following steps:

      file > New File or Project > Applications > Qt Quick Application > Qt Quick Controls 1.2

      And here is my main.qml code:

      import QtQuick 2.3
      import QtQuick.Controls 1.2

      ApplicationWindow {
      visible: true
      width: 800
      height: 480
      opacity: 1
      title: qsTr("Hello World")

      Image {
          id: image1
          x: 0
          y: 0
          width: 800
          height: 480
          source: "image01.png"
      }
      

      }

      1 Reply Last reply Reply Quote 0
      • p3c0
        p3c0 Moderators last edited by

        Hi,

        Check out "flags":http://qt-project.org/doc/qt-5/qml-qtquick-window-window.html#flags-prop and set it to Qt.FramelessWindowHint.

        157

        1 Reply Last reply Reply Quote 0
        • M
          matinzk last edited by

          Thanks alot, this did the trick.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post