Queensland captain Jimmy Peirson has come to the rescue for the second time in a week as his side recovered to collect a slim 18-run first-innings lead over South Australia at the Gabba.
Peirson earned player of the match honours with a century last week against New South Wales, and this time a counter-attacking 90 helped Queensland reach 290 in response to South Australia's 272.
South Australia survived four tricky overs late in the day to reach 0-8.
Peirson came to the crease with the Bulls at a shaky 5-99, but a 150-ball innings featuring 11 boundaries - along with contributions from Max Byrant (38) and Michael Neser (34) - helped the home side revive.
After a very slow first session, a steady flow of runs saw Queensland earn enough batting bonus points to edge into second in the event both they and Victoria earn victories in this round.
South Australia must win in Brisbane to have any chance of reaching the Shield final.
There were heroics too from South Australia rookie paceman Spencer Johnson who returned 7-47 from 23 overs in just his second first-class outing.
Johnson took 6-87 on his debut last month.
South Australia's attack was without Wes Agar with the Shield's leading wicket-taker rested ahead of next week's One-Day Cup final.