Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. No text being displayed in Tumbler Element.
Forum Updated to NodeBB v4.3 + New Features

No text being displayed in Tumbler Element.

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rituchawla
    wrote on last edited by
    #1

    Hi ,

    I have written the following code to create a tumbler object :
    The tumbler gets created with three rows and three columns , but the text is not displayed on to it .
    please help me with your precious responce :

    @import QtQuick 1.1
    import com.nokia.extras 1.1

    Rectangle {
    id: fontRect
    width: 360
    height: 640

    TumblerColumn {
            id: departure
            items: departureList
        }
    
        TumblerColumn {
            id: destination
            items: destinationList
        }
    
        ListModel {
            id: departureList
            ListElement { value: "Amsterdam" }
            ListElement { value: "Athens" }
            ListElement { value: "Berlin" }
            ListElement { value: "Brussels" }
            ListElement { value: "Copenhagen" }
            ListElement { value: "Helsinki" }
            ListElement { value: "London" }
            ListElement { value: "Madrid" }
            ListElement { value: "Oslo" }
            ListElement { value: "Paris" }
            ListElement { value: "Rome" }
            ListElement { value: "Stockholm" }
        }
    
        ListModel {
            id: destinationList
            ListElement { value: "Atlanta" }
            ListElement { value: "Boston" }
            ListElement { value: "Chicago" }
            ListElement { value: "Houston" }
            ListElement { value: "Los Angeles" }
            ListElement { value: "Montreal" }
            ListElement { value: "New York" }
            ListElement { value: "Phoenix" }
            ListElement { value: "San Francisco" }
            ListElement { value: "Seattle" }
            ListElement { value: "Toronto" }
            ListElement { value: "Washington" }
        }
    
        Tumbler {
            columns: [departure, destination]
            anchors.centerIn: parent
    
            //ColorAnimation { from: "white"; to: "black"; duration: 200 }
        }
    

    }
    @

    regards,
    CR

    RC

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shoyeb
      wrote on last edited by
      #2

      dont know wat the problem is but u can check this..

      "check this":https://qt.gitorious.org/qt-components/qt-components/blobs/master/examples/meego/QmlComponentExtrasGallery/qml/Tumbler.qml

      There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved