What you have drawn up is how QSC recommends wiring a single input to the amp to drive both channels (bottom of page 9). The manual also states that the 1/4" and XLR inputs are "connected internally, and provide feed thru to the other connector" so your plan to cascade the input single to the second amp should also work just fine.
FYI - The manual gives a current draw of 5.8 amps for a GX5 running at 4 ohms stereo with 1/8 program power. We can round up a bit and call it 12 amps for your two GX5s. If you have other gear installed in the same location you may want to check on what your total current demands are and consider a second power circuit, if needed.