<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Resize VirtualKeyboard ing QWidget]]></title><description><![CDATA[<p dir="auto">I have a qwidget app and I have to use virtualkeyboard.</p>
<p dir="auto">I added to main.cpp</p>
<pre><code>qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
</code></pre>
<p dir="auto">and I tried "QT_VIRTUALKEYBOARD_SCALE_FACTOR " but it did not work.</p>
<p dir="auto">Why I need ? Because it is so big and its size is half height of my screen.</p>
<p dir="auto">I need help.</p>
]]></description><link>https://forum.qt.io/topic/164825/resize-virtualkeyboard-ing-qwidget</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 13:10:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164825.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Jun 2026 10:36:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Wed, 24 Jun 2026 17:40:16 GMT]]></title><description><![CDATA[<pre><code>import QtQuick
import QtQuick.Window
import QtQuick.VirtualKeyboard

Window {
    id: root
    flags:  Qt.Tool | Qt.FramelessWindowHint | Qt.WindowDoesNotAcceptFocus | Qt.WindowStaysOnTopHint
    color:  "transparent"
    width:  Screen.width
    height: 300
    x: Screen.virtualX
    y: Screen.virtualY + Screen.height - height

    visible: inputPanel.active

    InputPanel {
        id: inputPanel
        width: parent.width
    }

    Binding {
        target:      inputPanel.keyboard.style
        property:    "keyboardDesignMaximumHeight"
        value:       300
        restoreMode: Binding.RestoreNone
    }
}
</code></pre>
<pre><code>int main(int argc, char *argv[])
{
    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
    QApplication a(argc, argv);

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/keyboard.qml")));

    MainWindow w;
    w.show();
    return a.exec();
}

</code></pre>
<p dir="auto">It works for me, any opinion for better view please comment :)</p>
]]></description><link>https://forum.qt.io/post/838878</link><guid isPermaLink="true">https://forum.qt.io/post/838878</guid><dc:creator><![CDATA[Joe von Habsburg]]></dc:creator><pubDate>Wed, 24 Jun 2026 17:40:16 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Sat, 27 Jun 2026 06:09:33 GMT]]></title><description><![CDATA[<p dir="auto">thanks you <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
]]></description><link>https://forum.qt.io/post/838893</link><guid isPermaLink="true">https://forum.qt.io/post/838893</guid><dc:creator><![CDATA[Joe von Habsburg]]></dc:creator><pubDate>Sat, 27 Jun 2026 06:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Fri, 26 Jun 2026 18:10:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You can find an example in this <a href="https://stackoverflow.com/a/59777491/5843716" target="_blank" rel="noopener noreferrer nofollow ugc">StackOverflow answer</a>.</p>
]]></description><link>https://forum.qt.io/post/838892</link><guid isPermaLink="true">https://forum.qt.io/post/838892</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 26 Jun 2026 18:10:13 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Fri, 26 Jun 2026 11:22:19 GMT]]></title><description><![CDATA[<p dir="auto">How ? I do not know qml. Could you give an example ?</p>
]]></description><link>https://forum.qt.io/post/838891</link><guid isPermaLink="true">https://forum.qt.io/post/838891</guid><dc:creator><![CDATA[Joe von Habsburg]]></dc:creator><pubDate>Fri, 26 Jun 2026 11:22:19 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Fri, 26 Jun 2026 10:33:11 GMT]]></title><description><![CDATA[<p dir="auto">The height of the keyboard is proportional to its width. So just setting that should also work.</p>
<p dir="auto">Instead of a QQmlApplicationEngine and a floating top-level window I would have used a non-layouted QQuickWidget to instantiate the InputPanel since you are using QWidgets.</p>
]]></description><link>https://forum.qt.io/post/838890</link><guid isPermaLink="true">https://forum.qt.io/post/838890</guid><dc:creator><![CDATA[GrecKo]]></dc:creator><pubDate>Fri, 26 Jun 2026 10:33:11 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Fri, 26 Jun 2026 03:23:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joe-von-habsburg">@<bdi>Joe-von-Habsburg</bdi></a> Neat trick! Thanks for sharing.</p>
<p dir="auto">You can replace the <code>Binding</code> object with a single line:</p>
<pre><code>Component.onCompleted: keyboard.style.keyboardDesignMaximumHeight = 300
</code></pre>
]]></description><link>https://forum.qt.io/post/838888</link><guid isPermaLink="true">https://forum.qt.io/post/838888</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Fri, 26 Jun 2026 03:23:39 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Wed, 24 Jun 2026 17:40:16 GMT]]></title><description><![CDATA[<pre><code>import QtQuick
import QtQuick.Window
import QtQuick.VirtualKeyboard

Window {
    id: root
    flags:  Qt.Tool | Qt.FramelessWindowHint | Qt.WindowDoesNotAcceptFocus | Qt.WindowStaysOnTopHint
    color:  "transparent"
    width:  Screen.width
    height: 300
    x: Screen.virtualX
    y: Screen.virtualY + Screen.height - height

    visible: inputPanel.active

    InputPanel {
        id: inputPanel
        width: parent.width
    }

    Binding {
        target:      inputPanel.keyboard.style
        property:    "keyboardDesignMaximumHeight"
        value:       300
        restoreMode: Binding.RestoreNone
    }
}
</code></pre>
<pre><code>int main(int argc, char *argv[])
{
    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
    QApplication a(argc, argv);

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/keyboard.qml")));

    MainWindow w;
    w.show();
    return a.exec();
}

</code></pre>
<p dir="auto">It works for me, any opinion for better view please comment :)</p>
]]></description><link>https://forum.qt.io/post/838878</link><guid isPermaLink="true">https://forum.qt.io/post/838878</guid><dc:creator><![CDATA[Joe von Habsburg]]></dc:creator><pubDate>Wed, 24 Jun 2026 17:40:16 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Wed, 24 Jun 2026 16:21:40 GMT]]></title><description><![CDATA[<p dir="auto">I tried like that but it did not work</p>
<pre><code>int main(int argc, char *argv[])
{
    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
    QApplication a(argc, argv);

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/keyboard.qml")));

    MainWindow w;
    w.show();
    return a.exec();
}
</code></pre>
<pre><code>import QtQuick
import QtQuick.Window
import QtQuick.VirtualKeyboard
import QtQuick.VirtualKeyboard.Settings
import QtQuick.VirtualKeyboard.Styles

VirtualKeyboard {
    id: root

    KeyboardStyle {
        keyboardDesignMaximumHeight: 300
    }

    InputPanel {
        id: inputPanel
        width: parent.width
        anchors.bottom: parent.bottom
    }
}

</code></pre>
]]></description><link>https://forum.qt.io/post/838877</link><guid isPermaLink="true">https://forum.qt.io/post/838877</guid><dc:creator><![CDATA[Joe von Habsburg]]></dc:creator><pubDate>Wed, 24 Jun 2026 16:21:40 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Wed, 24 Jun 2026 14:22:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> said in <a href="/post/838875">Resize VirtualKeyboard ing QWidget</a>:</p>
<blockquote>
<p dir="auto">Sounds like this issue: <a href="https://qt-project.atlassian.net/browse/QTBUG-128845" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.atlassian.net/browse/QTBUG-128845</a></p>
</blockquote>
<p dir="auto">Yes I have same problem, but how could I solve the problem on this link, I could not understand.</p>
<p dir="auto">Note:  I used  6.11.1 and this topic about 6.11, I changed to 6.9.3 and I saw same size problem on keyboard.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> said in <a href="/post/838875">Resize VirtualKeyboard ing QWidget</a>:</p>
<blockquote>
<p dir="auto">The official solution (available from Qt 6.11 onwards) is to customize the keyboard style and set the keyboardDesignMaximumHeight property: <a href="https://doc.qt.io/qt-6/qml-qtquick-virtualkeyboard-styles-keyboardstyle.html#keyboardDesignMaximumHeight-prop" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qml-qtquick-virtualkeyboard-styles-keyboardstyle.html#keyboardDesignMaximumHeight-prop</a></p>
</blockquote>
<p dir="auto">Actually I do not know qml and I do not know how I use it.</p>
<p dir="auto">Thanks for your reply <a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a></p>
]]></description><link>https://forum.qt.io/post/838876</link><guid isPermaLink="true">https://forum.qt.io/post/838876</guid><dc:creator><![CDATA[Joe von Habsburg]]></dc:creator><pubDate>Wed, 24 Jun 2026 14:22:25 GMT</pubDate></item><item><title><![CDATA[Reply to Resize VirtualKeyboard ing QWidget on Wed, 24 Jun 2026 13:31:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joe-von-habsburg">@<bdi>Joe-von-Habsburg</bdi></a> said in <a href="/post/838874">Resize VirtualKeyboard ing QWidget</a>:</p>
<blockquote>
<p dir="auto">it is so big and its size is half height of my screen</p>
</blockquote>
<p dir="auto">Sounds like this issue: <a href="https://qt-project.atlassian.net/browse/QTBUG-128845" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.atlassian.net/browse/QTBUG-128845</a></p>
<p dir="auto">The official solution (available from Qt 6.11 onwards) is to customize the keyboard style and set the <code>keyboardDesignMaximumHeight</code> property: <a href="https://doc.qt.io/qt-6/qml-qtquick-virtualkeyboard-styles-keyboardstyle.html#keyboardDesignMaximumHeight-prop" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qml-qtquick-virtualkeyboard-styles-keyboardstyle.html#keyboardDesignMaximumHeight-prop</a></p>
<p dir="auto">(Unfortunately, this API is quite unwieldy and not well documented: <a href="https://qt-project.atlassian.net/browse/QTBUG-144131" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.atlassian.net/browse/QTBUG-144131</a> )</p>
]]></description><link>https://forum.qt.io/post/838875</link><guid isPermaLink="true">https://forum.qt.io/post/838875</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Wed, 24 Jun 2026 13:31:37 GMT</pubDate></item></channel></rss>