as far as I know the Qt Company has always recommended Qt Quick for mobile devices. According to this video, Qt Quick and QML were created because Qt Widgets didn't suit the job of mobile UI.
so your code may work on iOS, I seriously doubt it is intended to.
As far as I know, the intention of the Qt Company, that they've had for long now, is to stop developing new features with Qt Widgets, those new features are available with Qt Quick only. Just have a look at recent modules like Qt Location : it does have UI elements to display maps in Qt Quick / QML, but there's obviously none in Qt Widgets. There's only non UI classes in C++.
By the way, there's a popular tool for UI mockup named Figma that allows you to design your UI, and Qt offers a bridge (which is a Figma plugin, not a Qt Design Studio plugin) that allows you to import your design into Design Studio. (Or use Design Studio directly ? yours to see.)
I'm currently looking at it. It seems really nice.