Skip to content

Instantly share code, notes, and snippets.

@ZaWertun
Created August 27, 2023 11:23
Show Gist options
  • Save ZaWertun/eb10ecea8393c3132e274e29c6343536 to your computer and use it in GitHub Desktop.
Save ZaWertun/eb10ecea8393c3132e274e29c6343536 to your computer and use it in GitHub Desktop.
Test onVisibilityChanged handler for Kirigami2 ApplicationWindow in Wayland
// Start with `QT_LOGGING_RULES="qml.debug=true" qmlscene-qt5 test-kirigami2.qml`
import org.kde.kirigami 2.20 as Kirigami
Kirigami.ApplicationWindow {
id: root
width: 500
height: 400
onClosing: {
console.log('Closing!')
}
onVisibilityChanged: {
console.log(visibility)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment