Skip to content
  • Take message only 1 port by UDP socket receive

    Unsolved General and Desktop udp socket port accept tcp
    4
    0 Votes
    4 Posts
    322 Views
    Christian EhrlicherC
    @Joe-von-Habsburg said in Take message only 1 port by UDP socket receive: How can I ignore ? Look at the QHostAddress and don't process it - there is no other chance except you add some filtering on OS level but Qt can't do anything against it.
  • Conditionally closing a dialog

    Unsolved QML and Qt Quick dialog input accept qml override
    2
    0 Votes
    2 Posts
    418 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.