With pocket pairs of face cards of higher, you need to be somewhat aggressive with it and establish yourself. However, it's not something to depend heavily on and go all-in, as you could easily lose to the dumbass who goes all in on 26 and nets a straight.
Even though you lost to pocket Q's, if that was all he had, he may have folded it on the Turn or River if you keep your bets strong and consistent. If he stayed, you'd have lost more, but hey, it's poker:
"You can make all of the right moves and still lose."