Flopping quads is always difficult because we block all of the value. The only way that anyone else can hit the flop is to have the other card. On QTT there is literally no other T possible to hit this. So the only thing that could pay us here is a Q, a pocket pair or a draw, and if the flop is dry there will be no draw.
Fortunately on this particular hand Qx can certainly continue, and also this flop is actually wet with hearts and several straight draws (KJ, J9 open-ended, AK, AJ, 98, guts) which we want any/all of them to connect. So, it is possible to bet for value here but checking is also fine, especially if we have an aggressive bluffy villain since this is a bluffy flop. I can't really range your Villain here since you give no pre-flop action but we are out of position, so absolutely check. If we are in position and checked to we can bet sometimes, depending on stacks and Villain tendencies, but if the flop is dry I probably even check back in position.
The turn card here is beautiful because it brings in KJ for straight and Ax for top pair, and in fact A8o top pair is exactly what Villain had. We might check again (because that A is awesome for Villain to improve or
bluff with), but we risk check-back which is bad because we need to build this pot so we still usually bet.
As for tips, checking flop, betting turn is the most common, especially if the flop is dry because a dry paired flop gets TONS of folds. We bet turn because we simply cannot afford to give up a 2nd street of value with the nuts. If he checks the flop and folds turn then there was no way that he was going to pay us a single chip anyways, so no harm in trying. Usually check the flop and if no action then try to get paid on turn and then play it from there.
So, yes in general you played it correctly. Bet sizings are going to matter and you don't tell your sizings, but your line at least is the correct line. Good job.