Seems like the correct direction, though I'd personally prefer 

    widget->setPlaceholderText(QObject::tr("Enter a Bitcoin address (e.g. %1)").arg(BITCOIN_EXAMPLE_ADDRESS));

This makes it clearer to the translators what the entire message is, instead of having to translate a fragment like 'e,g,'.