Tue, 28 Sep 2021 23:07:23 +0300
Use QSaveFile to save the file more safely
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Document</class> <widget class="QWidget" name="Document"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>957</width> <height>540</height> </rect> </property> <property name="windowTitle"> <string>Form</string> </property> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1"> <item> <widget class="QWidget" name="toolsBarContainer" native="true"/> </item> <item> <widget class="QSplitter" name="splitter_2"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <widget class="QSplitter" name="splitter"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <widget class="QFrame" name="viewportFrame"> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Raised</enum> </property> </widget> <widget class="QListView" name="listView"> <property name="alternatingRowColors"> <bool>true</bool> </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> <property name="selectionBehavior"> <enum>QAbstractItemView::SelectRows</enum> </property> </widget> </widget> <widget class="QStackedWidget" name="toolWidgetStack"> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Raised</enum> </property> </widget> </widget> </item> </layout> </widget> <resources/> <connections/> </ui>