CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2020-02-22
by Aleksey Kontsevich

Original Post

Original - Posted on 2020-02-22
by Aleksey Kontsevich



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I had same bug with modal dialog: white border around the dialog and somehow solved it with:
contentItem: Rectangle { anchors.fill: parent color: "black" border.width: 1 ... }
Here I solved it by settings margins to zero and wrapping `ChartView` into another `Rectangle` with same background color as setting negative fixed margins is not quite correct as necessary values could be different:
``` Item { Rectangle { color: "black" anchors.fill: parent }
ChartView { id: chart anchors.fill: parent antialiasing: true margins { top: 0; bottom: 0; left: 0; right: 0 } // plotArea: Qt.rect(0, 0, width, height) backgroundColor: "black" backgroundRoundness: 0 legend.visible: false ... } } ```
Commented out `plotArea: Qt.rect(0, 0, width, height)` might solve the issue as well but it don't: as axis and axis labels disappear in this case for some reason.
I had same bug with modal dialog: white border around the dialog and somehow solved it with:
contentItem: Rectangle { anchors.fill: parent color: "black" border.width: 1 ... }
Here I solved it by settings margins to zero and wrapping `ChartView` into another `Rectangle` with same background color as setting negative fixed margins is not quite correct as necessary values could be different:
``` Item { Rectangle { color: "black" anchors.fill: parent }
ChartView { id: chart anchors.fill: parent antialiasing: true margins { top: 0; bottom: 0; left: 0; right: 0 } // plotArea: Qt.rect(0, 0, width, height) backgroundColor: "black" backgroundRoundness: 0 legend.visible: false ... } } ```
Commented out `plotArea: Qt.rect(0, 0, width, height)` might solve the issue as well but it don't: as axis and axis labels disappear in this case for some reason.

        
Present in both answers; Present only in the new answer; Present only in the old answer;