@biaspoint
I am pleased you have your situation sorted.
Purely OOI, because I like shell scripting, why did you bother to put the xargs into your command when
dpkg -l | grep qt | awk '{print $2}'
would deliver the same result? :) | xargs -n1 echo is a bit of a no-op?