QStackedLayout ordering issue

Hello, in the QStackedLayout you say “by default the latest added widget is shown” but the code:

        layout.addWidget(Color('red'))
        layout.addWidget(Color('green'))
        layout.addWidget(Color('blue'))
        layout.addWidget(Color('yellow'))

suggests that the yellow widget is the latest added, but the video shows red.

Does it not default to index 0 ?