Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt Quick QML Hide Main Window Border
Forum Updated to NodeBB v4.3 + New Features

Qt Quick QML Hide Main Window Border

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 4.9k Views 1 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.
  • M Offline
    M Offline
    matinzk
    wrote on 22 Nov 2014, 13:52 last edited by
    #1

    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
    0
    • P Offline
      P Offline
      p3c0
      Moderators
      wrote on 22 Nov 2014, 15:58 last edited by
      #2

      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
      0
      • M Offline
        M Offline
        matinzk
        wrote on 23 Nov 2014, 13:56 last edited by
        #3

        Thanks alot, this did the trick.

        1 Reply Last reply
        0

        3/3

        23 Nov 2014, 13:56

        • Login

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