Hide Title bar in Qt Quick Application
I need to hide the title bar of my application. I tried
Code:
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'"
Re: Hide Title bar in Qt Quick Application
Hi.
Just add Qt::FramelessWindowHint to mainwindow.cpp
Example:
Code:
MainWindow
::MainWindow(QWidget *parent
) : ui(new Ui::MainWindow)
{
ui->setupUi(this);
that works for me without any problems.
Greets
xer
Re: Hide Title bar in Qt Quick Application
Follow the class ancestor chain, check the documentation until you find the flags property.
Bonus hint: QWindow
Cheers,
_