QQuickView flag() and setFlags() doesn't work?



  • How i can hide close/minimize/maximize buttons for QQuickView?

    this code does not work.

    @Qt::WindowFlags flags = this->flags();
    qDebug()<<flags;
    flags &= ~( Qt::WindowMaximizeButtonHint
    | Qt::WindowMinimizeButtonHint
    | Qt::WindowCloseButtonHint);

    qDebug()<<flags;
    this->setFlags(flags);@

    in debug output :

    @QFlags(0x1)
    QFlags(0x1) @

    For QDeclarativeView

    @qDebug()<<this->windowFlags();@

    and output:

    @QFlags(0x1|0x1000|0x2000|0x4000|0x8000|0x8000000|0x80000000)@

    For QQuickView setFlags() and flags() functions doesn't work. This is a bug?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.