Important: Please read the Qt Code of Conduct -

Signals and slots: priority

  • @
    while (begin != end) // iterators
    Zone* friendZone = memory.take((*begin));

        if (friendZone->isEnabled())
            friendZone->setDisabled(true); // label 1


    i can tryind disablet object before qt processing click;

    slot connected witch clicked:
    qobject_cast<Zone *>(sender())->setDisabled(true);

    ... actions witch Disabled object

    but again he not disabled him

    what i do wrong?
    sorry for my english

  • solved, error in
    @Zone* friendZone = memory.take((*begin)); @
    i use take and it wrong fixed on .value

Log in to reply