We take the Wigner function
$$W(\alpha)=\frac{1}{\pi^2}\int \text{e}^{\alpha \beta^*-\alpha^*\beta}\text{Tr}\left(\hat \rho \hat D(\beta) \right) \text{d}^2\beta,$$
and write the displacement operator as $\hat D(\beta)=e^{\beta\hat a^\dagger-\beta^*\hat a}=e^{-\beta^*\hat a}e^{\beta\hat a^\dagger}e^{\frac 1 2|\beta|^2}$ using the BCH formula such that
$$W(\alpha)=\frac{1}{\pi^2}\int \text{e}^{\alpha \beta^*-\alpha^*\beta}\text{Tr}\left(\hat \rho e^{-\beta^*\hat a} e^{\beta\hat a^\dagger}e^{\frac 1 2|\beta|^2} \right) \text{d}^2\beta.$$
Using the cyclic property of the trace, this can be rewritten as
$$W(\alpha)=\frac{1}{\pi^2}\int \text{e}^{\alpha \beta^*-\alpha^*\beta}e^{\frac 1 2|\beta|^2}\text{Tr}\left( \hat e^{\beta\hat a^\dagger} \hat \rho e^{-\beta^*\hat a} \right) \text{d}^2\beta.$$
The trace can be evaluated as
$$\text{Tr}\left( \hat e^{\beta\hat a^\dagger} \hat \rho e^{-\beta^*\hat a} \right)=\frac 1 \pi \int \text d^2\gamma \langle \gamma |e^{\beta \hat a^\dagger}\hat\rho e^{-\beta^*\hat a}|\gamma\rangle=\frac 1 \pi \int \text d^2\gamma \langle \gamma |e^{\beta \hat \gamma^*}\hat\rho e^{-\beta^*\gamma}|\gamma\rangle=\frac 1 \pi \int \text d^2\gamma e^{\beta \gamma^*-\beta^*\gamma} \langle \gamma |\hat\rho |\gamma\rangle.$$
Therefore, the Wigner function can be expressed as
$$W(\alpha)=\frac{1}{\pi^3}\int \int \text{e}^{(\alpha-\gamma)\beta^*- (\alpha^*-\gamma^*)\beta}e^{\frac 1 2|\beta|^2} \langle \gamma |\hat\rho |\gamma\rangle \text{d}^2\beta \text d^2\gamma .$$
By completing the square we find
$$W(\alpha)=\frac{1}{\pi^3}\int \int \text{e}^{\frac 1 2 (\beta+2(\alpha-\gamma))(\beta^*- 2(\alpha^*-\gamma^*))+2|\alpha-\gamma|^2} \langle \gamma |\hat\rho |\gamma\rangle \text{d}^2\beta \text d^2\gamma .$$
which can be simplified to
$$W(\alpha)=\frac{2}{\pi^2}\int \text{e}^{2|\alpha-\gamma|^2} \langle \gamma |\hat\rho |\gamma\rangle \text d^2\gamma .$$
This shows that
$$W(\alpha)=\frac{2}{\pi}\int \text{e}^{2|\alpha-\gamma|^2} Q(\gamma) \text d^2\gamma .$$