Queensland appeared on track for victory at Allan Border Field after posting 358, largely due to a blazing century by opener Hugh Weibgen (125 off 89 deliveries).
NSW were in trouble at 6-251 in the run chase but allrounders William Salzmann and debutant Jake Scott combined for a sensational unbeaten 108-run stand for the seventh wicket.
Scott (52no off 39) walloped Hayden Kerr over mid-wicket for six off the last ball of the 49th over to secure victory and embraced Salzmann (70no off 65).
Blues debutant opener Riley Kingsell also had a stellar match with his 79 off 82 deliveries guiding the perfectly timed run chase.
The Bulls were dismissed off the penultimate delivery of the innings after Weibgen and Jack Clayton (80) added 156 for the first wicket.
Weibgen, Australia's World Cup-winning under-19s captain in 2024, struck seven sixes including one pull shot onto the roof of the Stuart Law Stand above the press box in his second One-Day Cup century.
Queensland captain Marnus Labuschagne (60 off 47) went in search of meaningful touch in his last game before flying out to take on South Africa in next month's three-Test series.
Labuschagne, aiming to revitalise his batting fortunes on the Test tour, was circumspect early in scoring two runs off eight deliveries before a perfectly timed sweep shot off Tanveer Sangha to the boundary got him moving.
An exquisite on-drive to the fence off debutant allrounder Jake Scott showcased Labuschagne's intent before the skipper moved into overdrive.
One dynamic pull shot off Sean Abbott cleared the mid-wicket fence by 25 metres and landed amongst the tractors in the groundsman's shed.
NSW pacemen Ben Dwarshuis and Sean Abbott both took three wickets although the latter suffered some punishment.
The Bulls lost with one ball to spare against Victoria at the same venue three days earlier after posting 7-335, courtesy of a stunning 149no by Liam Blackford on debut.
There was a case of deja vu when NSW brought up 50 off just 3.3 overs with Kurtis Patterson hitting Tom Straker (1-105 off nine) for four sixes in one over.
Patterson (63 off 32) raised his 50 off 25 deliveries with a six, which also landed on top of the press box.Â
A stunning diving one-handed catch at mid-on by Max Bryant ended a fine hand by captain Lachlan Shaw (44) just when the visitors were threatening to get right on top.
Kingsell, son of Australian Olympic swimming gold medallist Sarah Ryan, departed and the Bulls breathed easier, but Scott and Salzmann had the final say in a stunning revival.