This Flickable won't flick or drag

  • I'm trying to understand how Flickable works. I have this, which is embedded in a small rectangle on the screen, thus the text is much larger than the rectangle:

    width: parent.width*.9
    height: parent.height*.9
    anchors.centerIn: parent
    contentHeight: sales.height
    contentWidth: width
    clip: true
    Text {
    width: parent.width
    height: parent.height
    text: //.... a huge amount of text here, many many lines
    wrapMode: Text.Wrap

    I've tried setting various properties on Flickable, but on Windows at least nothing I do allows the text to be dragged around, even though it obviously flows off the screen. What is the expected behavior, click and drag, or mouse scroll wheel or trackpad, or both?

  • I found the issue. Because I hard-coded the height of the Flickable's child, the Text element, there was no content larger than the Flickable to scroll through.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.