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. in quick control,which of event the close window
Qt 6.11 is out! See what's new in the release blog

in quick control,which of event the close window

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.2k 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.
  • 7611534547 Offline
    7611534547 Offline
    761153454
    wrote on last edited by
    #1

    in quick control,which of event the close window.

    Qt中国群 :218967017、218967042
    python中国群:133067664

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      Your grammar is a bit hard to understand but with Qt 5.1 you can reimplement the "Window::onClosing" handler if you want to accept or ignore a window close request from the user. To just close a window, you can set the visible property to false.

      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