相关文章推荐
稳重的甘蔗  ·  qml ...·  6 小时前    · 
寂寞的眼镜  ·  qml ...·  5 小时前    · 
文质彬彬的大象  ·  QML 缩放 —— ...·  5 小时前    · 
重感情的板凳  ·  在 Traefik ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

When I add items with a text in SwipeView , it shows me, that all items are in the same place, If I'm looking to the preview the SwipeView working well.

Code:

import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.3
Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")
    SwipeView {
        id: swipeView
        x: 195
        y: 133
        width: 200
        height: 200
        interactive: true
        currentIndex: 1
        clip: ture
        Item {
            id: hello
            Text {
                id: test
                text: qsTr("Hello")                    
        Item {
            id: bye
            Text {
                id: qrr
                text: qsTr("Bye")

This is what I get:

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.