import QtQuick 1.0 StyledText { width: mainWindow.qmlWidth - 20; textFormat: Text.RichText wrapMode: Text.WrapAtWordBoundaryOrAnywhere; }