Important: Please read the Qt Code of Conduct -

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>"

    How can i prevent the translation of the property textDev?

  • replace the line




Log in to reply