Queensland have defied New South Wales and the threat of Brisbane rain to secure a crucial Sheffield Shield win and jump into an equal share of second with two rounds remaining.
Queensland reached 5-235 within the final hour of play after a 50-minute delay threatened to halt their victory charge at the Gabba.
Defeat for NSW leaves their record at four defeats and four draws this season, and ensures that their slim hopes of reaching the Shield final are over.
Jack Clayton held the innings together with a superb 87 not out after the home side were on the back foot at 3-43.
Clayton and Jack Wildermuth (38) steadied the ship with an 86-run stand in pursuit of a challenging victory target of 233.
Queensland captain Jimmy Peirson backed up his first innings century, hitting the winning runs to end on 30 not out.