[Qt-creator] qtvirtualkeyboard Custom Style "scaleHint"

Mitch Curtis mitch.curtis at qt.io
Fri Jan 13 16:54:21 CET 2017

Hi Matt.

You can see how the scaleHint is calculated here:


I’ve created a bug report for the lacking documentation:


PS: this list is for Qt Creator; you’re better off asking on the Interest mailing list for general Qt stuff.


From: Qt-creator [mailto:qt-creator-bounces+mitch.curtis=qt.io at qt-project.org] On Behalf Of Bontrager, Matt
Sent: Thursday, 5 January 2017 10:15 PM
To: qt-creator at qt-project.org
Subject: [Qt-creator] qtvirtualkeyboard Custom Style "scaleHint"

Question: How Do I Compute the "scaleHint"?

I am developing a custom style for the qtvirtualkeyboard. According to this page<http://doc.qt.io/qt-5/qml-qtquick-virtualkeyboard-styles-keyboardstyle.html#scaleHint-prop>, it says:

This value is determined by the physical size and the design size of the keyboard.

I understand that the physical size of the keyboard and the design size of the keyboard are used to compute the scaleHint, but it doesn't say how it uses those to factors to determine it.

Can someone explain what that actually means and also... how do I compute the actual value of the scaleHint?

Thanks in advance.
Matt Bontrager
Senior Software Developer
Future Technology
Infotainment, Electronic and Software Systems

T:  +1.971.256.9743  | M: +1.503.550.0727


Jaguar Land Rover North America, LLC
1419 NW 14th Avenue, Portland, OR 97209
JaguarUSA.com<http://www.jaguarusa.com/index.html>  |  LandRoverUSA.com<http://www.landrover.com/us/en/lr/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20170113/f881d348/attachment.html>

More information about the Qt-creator mailing list