The result in Longman is a disaster for the LNP, which had seen the seat as within their grasp, with Ms Lamb holding it with a narrow margin of 0.8 per cent before her resignation after being caught up in the dual citizenship scandal which swept federal parliament.

The polls had given a slight edge to Mr Ruthenberg up until polling day itself, when they flipped and gave Ms Lamb a small lead.

That final flip in polling translated into big support for Labor on polling day itself, however the result is expected to tighten up once pre-polls are counted, which traditionally skew conservative.

LNP state president Garry Spence said Labor had spent up big to ensure it retained Longman and kept Bill Shorten's leadership safe.

"The Labor Party had to do what they could to shore up the leadership. They have spent money, bet the farm to do so," Mr Spence said.

Mr Ruthenberg's primary vote was a low 26 per cent, after he suffered a swing against him of 10 per cent.

One Nation's Matthew Stephen has eaten into the Liberal National vote, but up to 40 per cent of One Nation preferences went to Labor.