Prevent Translation of Property



  • I am writting a Qt-Creator plugin with custom widgets.

    I would like to prevent the translation of strings.

    @QString MyLabelPlugin::domXml() const
    {
    return QLatin1String("<ui language="c++" displayname="MyLabel">"
    " <widget class="MyLabel" name="myLabel">"
    " <property name="textDev">"
    " <string>TextLabel</string>"
    " </property>"
    " </widget>"
    "</ui>");
    }@

    How can i prevent the translation of the property textDev?



  • replace the line

    <string>TextLabel</string>

    with

    <cstring>TextLabel</cstring>


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.