A Queensland father has been handed a two-year good behaviour bond for giving his sick daughter cannabis oil.

The 32-year-old man, who cannot be named for legal reasons, pleaded guilty in Brisbane's Supreme Court to four counts of supplying a dangerous drug to a minor and one count of possessing a dangerous drug.

The court heard the man's daughter was diagnosed with cancer in 2014 when she was two years old.

She was diagnosed with a stage three neuroblastoma and given a 50 per cent chance of long-term survival.

The Supreme Court in Brisbane heard her father had researched the benefits of medicinal cannabis on the internet, and sourced the drug from northern New South Wales and the United States.

He cooked her food in cannabis oil and put the oil into chocolate.

The girl was in Brisbane's Lady Cilento Children's Hospital at Christmas when she ate the food, and her father wrote in text messages of the drug's success in calming her and giving her an appetite where she had not had one.

The Supreme Court heard he had wanted chemotherapy delayed while she had the cannabis oil.

But the girl's mother thought her food smelt funny and confronted her former partner.

The pair had separated after their daughter was born and the court heard the mother remained traumatised over the use of medicinal cannabis.

Charges compromised man's Blue Card status, lost him his job

In sentencing, Justice Peter Flanagan said the circumstances of the case were sad and unusual.

"It is a case that I have not previously encountered," Justice Flanagan said.

"What you did, no matter how much you believed in the positive effects, was both wrong and illegal and certainly in circumstances where it was done without reference to the doctors treating your daughter.

"One can't look into the future to see if it [cannabis] one day might be legal — for now it remains an illegal act."

He handed the father a two-year good behaviour bond with no conviction recorded.

The court heard the man worked as a primary school IT worker for 12 years and had glowing references about his decency, integrity, patience and participation.

However, the charges had compromised his status as a Blue Card holder and his employer had been forced to sack him.

He was noted to be remorseful and had declared he would not give his daughter more cannabis.

The Supreme Court was told that doctors said the drug had neither harmed nor benefited the child, who remains in hospital receiving more treatment.

Legislation has been released for public consultation in Queensland which would allow medicinal cannabis products to be prescribed and dispensed to patients in the state.