Skip to content
  • 0 Votes
    4 Posts
    176 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.

  • 0 Votes
    2 Posts
    308 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.