Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是插件使用的标签<object type="something" data="myfile.mytype"></object>。现在我想在我的插件源代码中使用 src 值,我该如何访问它?
<object type="something" data="myfile.mytype"></object>
try { std::string test = m_host->getDOMElement()->getProperty<std::string>("src"); } catch (...) { // There wasn't a value to fetch }