Given a probability space $(\Omega, \Sigma, P)$ and a measure space $(\mathbb{R}, \mathcal{B}(\mathbb{R}))$, let $X: \Omega\rightarrow\mathbb{R}$ be a RV which is $(\Sigma, \mathcal{B}(\mathbb{R}))$-measurable and let $F:\mathbb{R}\rightarrow[0,1]$ be its CDF.
I have trouble understanding the following, due to my lack of understanding of measure theory I suppose. Let us consider the expectation of $X$,
$\mathbb{E}_P(X) = \int^{}_{\Omega}X(\omega)P(d\omega) = \int^{}_{\mathbb{R}}tdF(t)$.
I understand both integrals independently (I think) but how are they linked? At first I thought one might use the Radon–Nikodym theorem, but than $F$ and $P$ would have to be defined on the same measurable space which they are not. Futhermore the RHS can be understood as a Riemann-Stieltjes ingegral whereas the LHS is a Lebesgue integral.
Since this is a rather measure theory heavy question I would like to additionally ask about the following notation I came across. Does $dP(\omega)$ and $P(d\omega)$ mean the same? Coming from measure theory I would expect the former.
To answer your last question: They are used interchangably. Authors don't agree on what the best notation for integration is.
As for how they're linked: The two integrals output the same number. There's not really anything else to it. The link is really between the coupling of the map $X$, the measure $P$ (on $\Omega$ as you say) and the measure $dF$ (at least you can view it as the measure given by $dF((a,b])=F(b)-F(a)$).
This is also a case of the abstract change of variables formula, since $dF$ is the push-forward measure of $P$ under $X$.