Queensland Premier Annastacia Palaszczuk has said that emergency plans to build a pipeline to a town that could run out of water within months could take about two years to complete.

The state government is studying whether an 87-kilometre pipeline could connect the drought-stricken community of Warwick to southeast Queensland's water supply network.

However, the Liberal National Party says the study will take too long and that the pipeline should already be under construction, due to the fact that the Leslie dam is expected to run dry by August 2020.