Qt Virtual Keyboard Custom Style

后端 未结 1 745
灰色年华
灰色年华 2021-01-22 08:25

I need to build a custom Style for a Qt VirtualKeyboard on a small screen to maximize its readability. I have built a custom layout into my project, and using the QT_VIRTUALKEY

相关标签:
1条回答
  • 2021-01-22 08:48

    It doesn't have to be in the Qt directory, just in a directory that is under QtQuick/VirtualKeyboard/Styles/ and in the QML import path.

    As an example, take a look at the auto test:

    http://code.qt.io/cgit/qt/qtvirtualkeyboard.git/tree/tests/auto/styles/data

    You can also put the style in a .qrc file under that folder structure:

    http://code.qt.io/cgit/qt/qtvirtualkeyboard.git/tree/src/virtualkeyboard/virtualkeyboardsettings.cpp#n70

    I've created a task to make this clearer: https://bugreports.qt.io/browse/QTBUG-66172

    0 讨论(0)
提交回复
热议问题