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
QtWS25 Last Chance

Qt Quick QML Hide Main Window Border

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 4.9k Views
  • 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 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
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on 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 last edited by
        #3

        Thanks alot, this did the trick.

        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 Extensions
        • Unsolved