Let's assume $\mathbb{Q} = M_1 \oplus M_2$, where $M_1$ and $M_2$ are nonzero submodules of $\mathbb{Q}$.
All we know about $M_1$ and $M_2$ are that they are nonzero, i.e., contain at least one nonzero element, so we start by taking $m_1 \in M_1$ and $m_2 \in M_2$ where $m_1$ and $m_2$ are both nonzero rationals.
We can write $m_1 = \frac{a_1}{b_1}$ and $m_2 = \frac{a_2}{b_2}$, where $a_1, a_2, b_1, b_2$ are nonzero integers.
Now we want to show that $M_1$ and $M_2$ have nontrivial intersection. Since both are $\mathbb{Z}$-submodules, we want to find some nonzero integer multiple of $m_1$ which is also a nonzero integer multiple of $m_2$. One that works is $a_1a_2 = a_2b_1m_1 = a_1b_2m_2$.