0

我的问题与用户界面有关。我RectangleApplicationWindow. 根矩形和应用程序窗口的高度和宽度相同。我在根矩形内设计了完整的应用程序。问题是当我最小化我的时ApplicationWindow,根矩形内的所有内容都被隐藏了。我厌倦了设置根矩形和应用程序窗口的最小高度和宽度,但问题仍然存在。

这是实际应用程序 https://drive.google.com/file/d/0Bz-y0XAfUMXHa2E2cFdBLTRhMGM/view?usp=sharing

这就是问题 https://drive.google.com/file/d/0Bz-y0XAfUMXHWTNIQlZYekw2R0E/view?usp=sharing

第二个问题是,我有一个ImageView内部根矩形。在最小化窗口时,它会越过工具栏,该工具栏也是根内的一个矩形。

这是图像视图 https://drive.google.com/file/d/0Bz-y0XAfUMXHUy1ZMEJIWFYyMnc/view?usp=sharing

这就是发生的事情 https://drive.google.com/file/d/0Bz-y0XAfUMXHb2pCdHFEMXBCeXM/view?usp=sharing

这是我的代码:

    ApplicationWindow {
                id: appwindow
                visible: true
                width: 1280
                height: 800
                     Rectangle{    //root rectangle inside application window
                         id:root
                         width: parent.width
                         height: parent.height
                         color:"#05293D"
                      Rectangle{                 //the toolbar inside root
                          id : toolbar
                          height : 50
                          width : root.width
                          color : "#7CC7FF"
                          radius: 4
                          visible: true
}

下面是Image根矩形内的代码:

    Image{
            id:main
            y: 81
            width: 600
            height: 400
            anchors.verticalCenterOffset: 23
            anchors.centerIn: parent
}
4

0 回答 0