<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Osso Notes">
<title></title></head>
<body>
<p>Hello fellow mailing list members,
<br>
<br>I'm reasonably new to programming and Qt/QML.
<br>I know the basics of C++ and QML. And I'm
<br>trying to create simple Sailfish OS QML/C++ app.
<br>
<br>I've already written a CLI version of my application in C++
<br>that contains the logic. So I will use that code as base for my Saifish app.
<br>
<br>I'm now creating the QML/Silica UI and the UI includes a single line TextField component for entering integers. However I noticed that placeholderText isn't shown, which makes it almost impossible for the user to see theTextField. When I set the text property of the TextField I can however see the text in the emulator. The relevant code basically looks like this:
<br>
<br>TextField{
<br> x: parent.Center
<br> y: 100
<br> focus: true
<br> placeholderText: "Please enter the answer here"
<br> InputMethodHints: Qt.ImhDigitsOnly
<br>}
<br>
<br>Also it seems that the InputMethodHint also doesn't work: I just get a general keyboard. No special digits only keypad, it doesn't even start on the number/special character tab of the keyboard.
<br>
<br>Are these things Silica Component bugs?</p>
</body>
</html>