There is a very known theorem that says: let $D$ be an integral domain, then $D$ is a field if only if $D[x]$ is a PID.
I found that the condition of $D[x]$ being a PID can be relaxed. More exactly, I found in this paper the following result (there it is theorem 16):
Theorem: Let $D$ be an integral domain. TFAE$\colon$
i) $D$ is a field.
ii) $D[x]$ is a PID.
iii) $D[x]$ is a Bézout domain.
iv) $D[x]$ is a Prüfer domain
All the implications are immediate, except for the implication iv)$\implies$ i). I'm stuck at that part of the proof. My idea is to show that every nonzero element of $D$ is an unit, but given that there are many characterizations of Prüfer domains, I don't know which one to use.
I tried to imitate the proof of the standard theorem ($D[x]$ is a PID, then $D$ is a field). More exactly, if $a\in D\setminus \{0\}$, then I considered the ideal $(a,x)$. Since is clearly a nonzero ideal, by the hypothesis $(a,x)$ is an invertible ideal, therefore there are $q_1(x), q_2(x)\in D(x)$ such that $q_1(x)(a,x)\subseteq D[x]$, $q_2(x)(a,x)\subseteq D[x]$ and $$q_1(x)a+q_2(x)x=1.$$
From here I was trying to write $q_i=\frac{f_i}{g_i}$, for some $f_i, g_i\in D[x]$ ($g_i\neq 0$) and then to use some degree arguments to show that $a$ is an unit, but I didn't success.
Any hints or solutions are appreciated.