You also have to add the recipe to the image you are building. In one of the layers there should be a st-image-qt.bb file. It should be in <layername>/recipes-core/images
. There, you have to add it with IMAGE_INSTALL:append = " mygui "
(Note the space after the "). Only then the recipe is included in the image, only adding the layer is not enough.