How to make the dialog and the text fit the device screen?
Solved
Qt 6
-
wrote on 14 Dec 2021, 04:49 last edited by
I have a dialog with long text
Required sound format is not supported on your device. The application will continue to work, but the sound will be disabled.
:import QtQuick import QtQuick.Controls import QtQuick.Layouts Dialog { id: soundWarningDialog modal: true title: "Too long text" standardButtons: Dialog.Ok Text { text: qsTr("SoundWarning_Key") } }
on Android emulator it looks like this:
How to make the dialog and the text fit the emulator screen?
-
wrote on 14 Dec 2021, 09:43 last edited byThis post is deleted!
-
I have a dialog with long text
Required sound format is not supported on your device. The application will continue to work, but the sound will be disabled.
:import QtQuick import QtQuick.Controls import QtQuick.Layouts Dialog { id: soundWarningDialog modal: true title: "Too long text" standardButtons: Dialog.Ok Text { text: qsTr("SoundWarning_Key") } }
on Android emulator it looks like this:
How to make the dialog and the text fit the emulator screen?
wrote on 14 Dec 2021, 12:55 last edited by@Dmitriano You have to set Text properties according to your needs:
Text { width: parent.width text: qsTr("SoundWarning_Key") wrapMode: Text.WordWrap }
1/3