I think yours is a very good question and a great example, if it was needed, of how NL holdem will constantly put you to test with tough decisions. That's why the few times I play ring games I prefer limit holdem, because lol I'm a chicken (note that is not to say limit players are chickens, if you play $3/6$ tables and you're not careful some of them will eat you alive). But since I play mostly NL tourneys I've been in that situation many times, and I can tell you, in my opinion, there is no 100% safe strategy, since it's hard to tell if someone is actually holding AA or KK or just plainly overplaying JJ, TT or AK. That said, this is how I play in that spot.
We are assuming here that both you and your opponent have a decent size stack and you don't know what kind of player he/she is, otherwise you will adjust accordingly. My preflop strategy is pretty much like yours, if I'm 1st to raise and he reraises me, I'll reraise again, and the reason for that is to try to figure where I stand. If my opponent goes all-in I'll fold and take the loss. Not that this is necessarily the correct move since some donks will do that with JJ, TT or AK, but if I'm not shortstacked I'm unwilling to risk it all with QQ. If, as was your last case, my opponent calls my reraise and I miss the flop, I will fire at the pot even if the flop has an A, as I might get him to fold if he has KK; if I get reraised all-in, I'll fold. Many will probably disagree with this strategy, since it might have some holes, particularly if rags flop, but he has shown strength throughout the hand, and if he bluffed me out then he played it very well and beat me soundly.
This strategy differs from yours in that I will fold at the end if my opponent keeps showing strength. Keep in mind, however, that things are much different if either you or your opponent are shortstacked, or if you know his tendencies having played him before. Also, this is just my opinion and I'm not an expert. I'll keep checking this thread to see other members opinions.