Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. XML file does not update after modifying(disabling some properties)
Qt 6.11 is out! See what's new in the release blog

XML file does not update after modifying(disabling some properties)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 665 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lukutis222
    wrote on last edited by
    #1

    Hello. I am begginer at use QT Creator but I notice a strange issue. I am making a simple interface:
    9cc37e79-3472-4001-ad61-2eaaaa370d33-image.png

    Notice mouseTracking property is currently disabled. Initially, I had it enabled but then I realised that I do not need it anymore, after that I have disabled it but it did not How can I get it to update the on the editor? See the editor:

    <?xml version="1.0" encoding="UTF-8"?>
    <ui version="4.0">
     <class>Widget</class>
     <widget class="QWidget" name="Widget">
      <property name="geometry">
       <rect>
        <x>0</x>
        <y>0</y>
        <width>800</width>
        <height>600</height>
       </rect>
      </property>
      <property name="windowTitle">
       <string>Widget</string>
      </property>
      <widget class="QPushButton" name="Serial_connect">
       <property name="geometry">
        <rect>
         <x>600</x>
         <y>40</y>
         <width>75</width>
         <height>24</height>
        </rect>
       </property>
       <property name="text">
        <string>Connect</string>
       </property>
      </widget>
      <widget class="QComboBox" name="Serial_list">
       <property name="geometry">
        <rect>
         <x>90</x>
         <y>90</y>
         <width>69</width>
         <height>22</height>
        </rect>
       </property>
       <property name="mouseTracking">
        <bool>false</bool>
       </property>
       <item>
        <property name="text">
         <string>COM</string>
        </property>
       </item>
      </widget>
      <widget class="QPushButton" name="Scan_button">
       <property name="geometry">
        <rect>
         <x>80</x>
         <y>30</y>
         <width>91</width>
         <height>21</height>
        </rect>
       </property>
       <property name="text">
        <string>Scan devices</string>
       </property>
      </widget>
     </widget>
     <resources/>
     <connections>
      <connection>
       <sender>Scan_button</sender>
       <signal>clicked()</signal>
       <receiver>Serial_list</receiver>
       <slot>update()</slot>
       <hints>
        <hint type="sourcelabel">
         <x>125</x>
         <y>40</y>
        </hint>
        <hint type="destinationlabel">
         <x>124</x>
         <y>100</y>
        </hint>
       </hints>
      </connection>
     </connections>
    </ui>
    

    For some reason, it still says that mousetracking is enabled. How can I get this xml to actually display whats currently configured?

    jsulmJ 1 Reply Last reply
    0
    • L lukutis222

      Hello. I am begginer at use QT Creator but I notice a strange issue. I am making a simple interface:
      9cc37e79-3472-4001-ad61-2eaaaa370d33-image.png

      Notice mouseTracking property is currently disabled. Initially, I had it enabled but then I realised that I do not need it anymore, after that I have disabled it but it did not How can I get it to update the on the editor? See the editor:

      <?xml version="1.0" encoding="UTF-8"?>
      <ui version="4.0">
       <class>Widget</class>
       <widget class="QWidget" name="Widget">
        <property name="geometry">
         <rect>
          <x>0</x>
          <y>0</y>
          <width>800</width>
          <height>600</height>
         </rect>
        </property>
        <property name="windowTitle">
         <string>Widget</string>
        </property>
        <widget class="QPushButton" name="Serial_connect">
         <property name="geometry">
          <rect>
           <x>600</x>
           <y>40</y>
           <width>75</width>
           <height>24</height>
          </rect>
         </property>
         <property name="text">
          <string>Connect</string>
         </property>
        </widget>
        <widget class="QComboBox" name="Serial_list">
         <property name="geometry">
          <rect>
           <x>90</x>
           <y>90</y>
           <width>69</width>
           <height>22</height>
          </rect>
         </property>
         <property name="mouseTracking">
          <bool>false</bool>
         </property>
         <item>
          <property name="text">
           <string>COM</string>
          </property>
         </item>
        </widget>
        <widget class="QPushButton" name="Scan_button">
         <property name="geometry">
          <rect>
           <x>80</x>
           <y>30</y>
           <width>91</width>
           <height>21</height>
          </rect>
         </property>
         <property name="text">
          <string>Scan devices</string>
         </property>
        </widget>
       </widget>
       <resources/>
       <connections>
        <connection>
         <sender>Scan_button</sender>
         <signal>clicked()</signal>
         <receiver>Serial_list</receiver>
         <slot>update()</slot>
         <hints>
          <hint type="sourcelabel">
           <x>125</x>
           <y>40</y>
          </hint>
          <hint type="destinationlabel">
           <x>124</x>
           <y>100</y>
          </hint>
         </hints>
        </connection>
       </connections>
      </ui>
      

      For some reason, it still says that mousetracking is enabled. How can I get this xml to actually display whats currently configured?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @lukutis222 said in XML file does not update after modifying(disabling some properties):

      <property name="mouseTracking">
      <bool>false</bool>
      </property>

      It is disabled in XML, not sure what the problem is?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved