Hey all, i have a question regarding the use of a QSplitter.

I have a form with 2 frames in it right above each other. Now the content of these frames are a bit dynamic and for testing I use a Python call to read the children which gives me something like:

<QWidget>
<Frame_A>
<Frame_B>
</QWidget>

Now for usability reasons, I had to make these frames scalable as the content in the top frame can be bigger than the bottom. So i added a QSplitter between these frames.



But for some reason, when the splitter is added, the order of the frames is suddenly reversed and gives me:

<QWidget>
<Frame_B>
<Frame_A>
</QWidget>

The .ui file seems to be correct and indeed gives me A on top and B below it.

If i turn the frames around (so Frame_A is on the bottom), my result is correct again (but reversed as Frame_B is on the top now). I tried to replicate it with a very barebones form (no other logic assigned to it) and i get the same results. Is this a Qt bug or am i missing something?


Other things i tried and did not work:

- Changing the Object names of the frames (alphabetically)
- Removing the frames and readding them in the order i wanted
- Removing the frames and readding them in the reversed order i wanted
- Editting the XML file manually and changing the order