0
當我把一個圖像放在一個矩形中時,它的位置是左上角。如何在調整窗口大小的情況下將其保持在最佳狀態?如何正確地浮動圖像,以便在調整窗口大小時保持正確?
import QtQuick 2.0
Rectangle {
id: outestRec
width: 500
height: 500
Image
{
id: imgLonnie
source: "http://www.lonniebest.com/Image/Photo/LonnieLeeBest.png";
//anchors.right: AnchorLine;
}
}
你能解釋一下它爲什麼會這樣嗎? – Maerlyn 2013-05-12 06:47:17
請檢查編輯。 – 2013-05-12 08:07:17