A woman who was allegedly raped by the former Queensland president of the CFMEU sent messages from her phone saying "save me" and "please help" before the incident, a court has heard.

Key points: The court heard the pair met at a roof top bar in 2017, and early the next morning the woman sent a message to a friend that read "save me"

The court heard the pair met at a roof top bar in 2017, and early the next morning the woman sent a message to a friend that read "save me" The court heard police found pictures and deleted video of the woman on Mr Hanna's mobile phone

The court heard police found pictures and deleted video of the woman on Mr Hanna's mobile phone The prosecution told the court CCTV footage would be played of the pair waiting for a taxi

David Arthur Hanna pleaded not guilty to three counts of rape and one count of recording in breach of privacy at the beginning of his District Court trial in Brisbane.

The court heard the pair met late in the evening at a rooftop bar in Fortitude Valley in March 2017.

In his opening address, Prosecutor Michael Lehane said witnesses described the woman as dazed, confused and drunk, while the accused had not appeared intoxicated.

He told jurors CCTV footage would be played of the pair waiting for a taxi outside the bar as well as photos from inside the taxi.

"You will see that she appeared unsteady on her feet at times," Mr Lehane said.

The prosecution told the court Mr Hanna offered to pay for her taxi home and was "all over" the woman who was "seemingly asleep".

"At one point, the accused has both of his hands on her while she is in that state," Mr Lehane said.

The court heard Mr Hanna kicked in the front door of the house because the woman could not find her keys.

The prosecution said the woman had not wanted to have sex with Mr Hanna.

"[The woman] sent a Facebook message to a friend... the message reads 'save me'," Mr Lehane said.

"She then called a former boyfriend … the call went unanswered.

"She then text him this message at 2:27am: 'please help me'."

The prosecution told the court Mr Hanna followed the woman to her bedroom.

"The next thing she can remember is the accused was on top of her," Mr Lehane said.

"She was saying 'I don't want to'.

"She was scared, she felt like she was being held down."

Mr Lehane said the woman then said to him: "If you are going to do it can you at least put something on and he didn't answer."

Woman lacked 'cognitive capacity to consent', court told

The court heard the next morning the woman woke up completely naked, bruised and called police.

Her damaged dress was on the floor.

The prosecution told the court police arrested Mr Hanna a few days later through their own enquires and found pictures and deleted videos of the woman on Mr Hanna's mobile that were taken from 2:45am onwards.

"There was no movement apparent from the female on that video," Mr Lehane said.

"She had no idea they had been taken.

"[Mr Hanna] took advantage of his position and her vulnerability by committing either non-consensual acts upon her or sexual acts where she lacked the cognitive capacity to consent."

The trial continues.