Let $(\Omega,\mathcal{F},P)$ be a probability space, $\mathcal{Q} \subset \mathcal{F}$ be a $\sigma$-algebra on $\Omega.$ Let $f:\mathbb{R}^+ \rightarrow \mathbb{R}^+,$ a function of class $C^1,$ non-decreasing, $f(0)=0.$ Consider a random variable $X$ taking values in $\mathbb{R}^+.$
Prove that $$E[f(X)|\mathcal{Q}]=\int_{0}^{+\infty}f'(x)P(X>x|\mathcal{Q})dx \ \ \ \ a.s.$$
The first thing we need to prove is that $\int_{0}^{+\infty}f'(x)P(X>x|\mathcal{Q})dx$ is $\mathcal{Q}$-measurable and then for all $E \in \mathcal{Q},$ $$\int_E (\int_0^{+\infty}f'(x)P(X>x)dx)dP=\int_Ef(X)dP$$
If $(x,w) \rightarrow f'(x)P(X>x|\mathcal{Q})(w)$ is $(B(\mathbb{R}^+) \times \mathcal{Q})$-measurable, then it's over using Fubini.
So is it true that $(x,w) \rightarrow f'(x)P(X>x|\mathcal{Q})(w)$ is $(B(\mathbb{R}^+) \times \mathcal{Q})$-measurable? Should we consider approximation for $X=1_E$ where $E \in \mathcal{F}$? If not is a $\pi$-$\lambda$ system argument possible?
Let $Y$ be a bounded $\mathscr{Q}$-measurable random variable. Since $(t,\omega)\mapsto 1_{t<X(\omega)}f'(t)$ is $(\mathscr{B}(\mathbb{R}^+)\otimes \mathscr{F}) $-measuarable and nonnegative, and \begin{align*} \mathsf{E}[f(X)Y]&=\mathsf{E}\Big[\int_{0}^{\infty}1_{t<X(\omega)}f'(t)\,dt\cdot Y(\omega)\Big]\\ &=\int_{0}^{\infty}\mathsf{E}[1_{t<X(\omega)}Y]f'(t)\,dt, \qquad \forall Y\in b\mathscr{Q}, \end{align*} then \begin{align*} \mathsf{E}[f(X)|\mathscr{Q}] &=\mathsf{E}\Big[\int_{0}^{\infty}1_{t<X(\omega)}f'(t)\,dt\Bigm|\mathscr{Q}\Big]\\ &=\int_{0}^{\infty}\mathsf{P}(X>t|\mathscr{Q})f'(t)\,dt . \end{align*}
Remark: The existence of $(t,\omega)$-measurable version of $\mathsf{E}[1_{X>t}|\mathscr{Q}]$ could be deducted from the existence of regular conditional probability $\mathsf{P}_X(B|\mathscr{Q})$ and by a $\pi-\lambda$ system argument. Please cf. Galen R. Shorack, Probability for Statisticians, 2nd Ed. Springer International Publishing, 2017. Sec.7.5, p.143.