A bushwalker who found a cannabis crop in a Queensland national park has been shot in the stomach.

He was hit with a small calibre bullet while leaving the Deepwater National Park, which is about halfway between Bundaberg and Gladstone, on Monday, police say.

The 40-year-old was flown to Bundaberg Hospital for treatment.

Police have asked anyone with information to come forward.

AAP