Qualified immunity is a judge-made doctrine that routinely shields bad cops from facing civil lawsuits over their abusive and unconstitutional behavior. All too often, a federal judge will hear a case in which a clear constitutional violation occurred, only to then shield the offending officer anyway from facing civil liability over the blatant misconduct. It's a legal doctrine that deserves to be abolished.
Occasionally, however, the officer will lose one of these cases, and qualified immunity will be denied. That's what happened last year in Hart v. Grand Rapids, in which the U.S. Court of Appeals for the 6th Circuit actually let a federal civil rights lawsuit proceed against a Michigan police officer whose use of deadly force against a protester was officially reprimanded by his own superiors because of how the officer's actions violated the department's training and procedures.