Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QQuickView flag() and setFlags() doesn't work?
Qt 6.12 LTS is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 2.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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?

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