recreate stackedwidget from camera example

  • This is what I get when I place an stacked widget from the Designer menu in my form:
    Screenshot from 2019-12-24 16-34-49.png

    but the camera example stacked widget is like this:

    Screenshot from 2019-12-24 16-42-40.png

    How is that created? also when I click on viewfinderPage of camera example's stacked widget it has a expandable list named layout which is a grid layout in the property value on the right down side but there's nothing like that when I place an stacked widget in my form.

    Screenshot from 2019-12-24 16-48-27.png

    How to recreate this?

  • OK I figured it out myself. First one must place some widget in the pages and then right-click on the stackedWidget object name and from the menu select Layout and the select the desired layout.

Log in to reply