Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

drawing problem, some area does not draw well on Windows machine.

$
0
0
hello, thanks for your reply. I tried, but the problem is still only on the third one. Please see the result below. http://ameblo.jp/jianghaiying2002/entry-11768624153.html And please see the new code, in which I added “antialiasing: true”. Anyway, I also tried “antialiasing: true” at somewhere alse, but still does not draw well. Did I add it at wrong place? unit.qml import QtQuick 2.0 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.0   Item {     width: 1200; height: 650     Rectangle {         id: rectangle1         width: 50         height: 400         color: "lightyellow"         border.color: "black"     }       Item {         id: slots         anchors {left: rectangle1.right; leftMargin: 10; top: rectangle1.top}         width:990         height: 300         Row{               Item{                 width: (slots.width)/16; height:300                 Loader{                     source: "slot1.qml"                 }             }             Item{                 width: (slots.width)/16; height:300             }             Item{                 width: (slots.width)/16; height:300                 Loader{                     source: "slot1.qml"                 }             }             Item{                 width: (slots.width)/16; height:300             }             Item{                 width: (slots.width)/16; height:300                 antialiasing: true                 Loader{                     source: "slot1.qml"                 }             }             Item{                 width: (slots.width)/16; height:300             }             Item{                 width: (slots.width)/16; height:300                 Loader{                     source: "slot1.qml"                 }             }         }     } } slot1.qml import QtQuick 2.0 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.0   Rectangle {     id: slot1     width: 120     height: 300     color: "#d4d4d4"     border.color: "#625a5a"     antialiasing: true       Text{         x: 26         anchors.top: parent.top         text: "slot1"         font.family: "Verdana"         anchors.topMargin: 33     }       Label {         id: label1         x: 13         y: 137         width: 37         height: 10         text: "PORT1"         horizontalAlignment: Text.AlignRight         font.pointSize: 12     }       Label {         id: label2         x: 12         y: 116         width: 38         height: 10         text: "PORT2"         horizontalAlignment: Text.AlignRight         font.pointSize: 12     }       Label {         id: label3         x: 13         y: 160         width: 37         height: 10         text: "PORT3"         horizontalAlignment: Text.AlignRight         font.pointSize: 12     }       Label {         id: label4         x: 43         y: 283         text: "#1"         font.pointSize: 12         style: Text.Normal         horizontalAlignment: Text.AlignHCenter     } }

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images