Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Signals and slots: priority

Signals and slots: priority

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 806 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

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

        if (friendZone->isEnabled())
        {
            friendZone->click(); 
            friendZone->setDisabled(true); // label 1
        }
        begin++;
    }
    

    @

    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

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved