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. [Solved]Hide Title bar in Qt Quick Application
Forum Updated to NodeBB v4.3 + New Features

[Solved]Hide Title bar in Qt Quick Application

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 10.3k 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.
  • N Offline
    N Offline
    nikhil.patil2010
    wrote on last edited by
    #1

    I need to hide the title bar of my application. I tried

    @setWindowFlags(Qt::Window | Qt::FramelessWindowHint);@

    in main.cpp.. But i got the error "C:\Qt\Qt5.2.1\Tools\QtCreator\bin\PSC\main.cpp:13: error: C2039: 'setWindowFlags' : is not a member of 'QtQuick2ApplicationViewer'"

    1 Reply Last reply
    0
    • O Offline
      O Offline
      onek24
      wrote on last edited by
      #2

      Hello and welcome to devnet,

      QtQuick2ApplicationViewer does not provide the function setWindowFlags(). You might have to use setFlags() instead.

      Also you can set the flags in your QML-file if you are using a ApplicationWindow as your top-level component.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nikhil.patil2010
        wrote on last edited by
        #3

        It worked.. Thanks...!!
        [quote author="onek24" date="1395053622"]Hello and welcome to devnet,

        QtQuick2ApplicationViewer does not provide the function setWindowFlags(). You might have to use setFlags() instead.

        Also you can set the flags in your QML-file if you are using a ApplicationWindow as yout top-level component.[/quote]

        1 Reply Last reply
        0
        • O Offline
          O Offline
          onek24
          wrote on last edited by
          #4

          You're welcome. I'm glad that i could help you. Please add [solved] to the title of this thread so everyone else can see that the problem is solved/a solution was providet.

          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