And the createSceneGraph() method in this code is to create only a simple color cube. If the result was right, it should show an image of color cube in sub-frame, which is just the same as which is shown in main-frame. But sub-frame shows nothing in my result.

This problem has bothered me for two days. Could someone help me? Thanks.