WA left-arm spinner Ashton Agar prised out the dangerous Chris Hartley shortly after lunch as Queensland fought to stay in the Sheffield Shield match at the Gabba.
The home team, chasing 440 for victory, were 5-164 after Hartley's dismissal for 38. Agar had taken 2-51.
Hartley and opening batsman Greg Moller had put on 55 for the fifth wicket.
Rain and the handy partnership came to a battling Queensland's aid on the fourth and final day.
The Bulls went to an early lunch still in trouble at 4-161, after a brief but heavy shower forced players from the field.
Recalled opener Moller (74 not out) and wicketkeeper Chris Hartley (38 not out) had put on 52 by the break.
Queensland began the day at 2-88 but WA paceman Nathan Coulter-Nile (3-47) quickly hammered home the Warriors' advantage with two wickets in the opening half-hour of play.
Coulter-Nile delivered a brute of a short ball to Peter Forrest which had him fending to point to fall for 11. He has taken six wickets for the match.
Left-hander Nathan Reardon (6) then skied an injudicious pull shot which Marcus Harris caught smartly running back from square-leg.
The defending champion Bulls lead the competition on 22 points but last-placed Western Australia will move to 14 and resuscitate their season with an outright victory.