How about using QTextDocuemnt::setDefaultStyleSheet()?