Why don't you just try it and see?

Qt widgets, as already noted, support full 32-bit color and transparency. If X is using those bitplanes for another purpose, however, I wouldn't expect results to be the same.