如何通过QPushButton的指针获取到该对象的xml?

如何通过QPushButton的指针获取到该对象的xml?

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <widget name="__qt_fake_top_level">
  <widget class="QPushButton" name="pb_yes">
   <property name="geometry">
    <rect>
     <x>850</x>
     <y>270</y>
     <width>75</width>
     <height>35</height>
    </rect>
   </property>
   <property name="text">
    <string>确定</string>
   </property>
  </widget>
 </widget>
 <resources/>
</ui>

获取不到

如果你不修改控件的objectName的话,xml里的name应该对应的QPushButton的objectName