Revision control

Copy as Markdown

// Copyright (C) 2026 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Controls
ApplicationWindow {
width: 640
height: 480
property alias button: btn
property string toolTipText: "?"
property bool showToolTip: false
Button {
id: btn
text: "Hover me"
ToolTip.delay: 0
ToolTip.visible: showToolTip && toolTipText.length > 0
ToolTip.text: toolTipText
}
}