Skip to content
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Qt 6.12 LTS is out! See what's new in the release blog
  • 0 Votes
    6 Posts
    3k Views
    K
    @Clint-Westwood said in [QBS] How to override product properties?: here has got to be some way to do it from QBS file I'm not sure. But you may ask the question on the discord chat, because there are more peoples. ;)
  • Conditionally closing a dialog

    Unsolved QML and Qt Quick dialog input accept qml override
    2
    0 Votes
    2 Posts
    1k Views
    E
    I also needed this but there was no answer for it anywhere. Here is my solution: Dialog { id: loginDialog title: "Login" modal: true LoginDialog { id: loginPage anchors.fill: parent } footer: DialogButtonBox { id: buttons Button { id: okButton text: qsTr("Ok") DialogButtonBox.buttonRole: DialogButtonBox.InvalidRole Connections { target: okButton function onClicked() { if (CONDITION){ loginDialog.accept() } else { } } } } Button { id: cancelButton text: qsTr("Cancel") DialogButtonBox.buttonRole: DialogButtonBox.RejectRole } } } So my answer is replace standard buttons and handle button clicks yourself.