198 lines
7.5 KiB
XML
198 lines
7.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<ui version="4.0">
|
||
<class>MainWindow</class>
|
||
<widget class="QMainWindow" name="MainWindow">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>0</y>
|
||
<width>565</width>
|
||
<height>660</height>
|
||
</rect>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>MainWindow</string>
|
||
</property>
|
||
<property name="windowIcon">
|
||
<iconset resource="../_resources/main.qrc">
|
||
<normaloff>:/images/main_icon.png</normaloff>:/images/main_icon.png</iconset>
|
||
</property>
|
||
<widget class="QWidget" name="centralwidget">
|
||
<layout class="QVBoxLayout" name="verticalLayout">
|
||
<property name="spacing">
|
||
<number>20</number>
|
||
</property>
|
||
<item>
|
||
<widget class="QLabel" name="label_2">
|
||
<property name="text">
|
||
<string><html><head/><body><p align="justify">Приложение использует библиотеку <span style=" font-weight:700;">lib_logger</span> для сохранения лога в файл. Логирование событий осуществляется через стандартный механизм Qt:</p><p>qInfo() &lt;&lt; &quot;Строка информации&quot;;</p><p>qDebug() &lt;&lt; &quot;Строка отладки&quot;;</p><p>qWarning() &lt;&lt; &quot;Строка предупреждения&quot;;</p><p>qCritical() &lt;&lt; &quot;Строка ошибки&quot;;</p><p align="justify">Строки отладки (qDebug, qCDebug) сохраняются только если приложение запущено с параметром /debug или в каталоге ПО находится файл <span style=" font-weight:700;">debug</span> (без расширения с любым содержанием).</p><p align="justify">Логи сохраняются в каталоге профиля приложения. Если в каталоге ПО находится файл <span style=" font-weight:700;">portable</span> (без расширения с любым содержанием), то каталог логов будет создан в подкаталоге <span style=" font-weight:700;">profile</span> каталога ПО.</p></body></html></string>
|
||
</property>
|
||
<property name="wordWrap">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox1">
|
||
<property name="title">
|
||
<string>Пример логирования событий</string>
|
||
</property>
|
||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||
<property name="spacing">
|
||
<number>40</number>
|
||
</property>
|
||
<property name="leftMargin">
|
||
<number>20</number>
|
||
</property>
|
||
<property name="topMargin">
|
||
<number>20</number>
|
||
</property>
|
||
<property name="rightMargin">
|
||
<number>20</number>
|
||
</property>
|
||
<property name="bottomMargin">
|
||
<number>20</number>
|
||
</property>
|
||
<item>
|
||
<layout class="QGridLayout" name="gridLayout">
|
||
<property name="spacing">
|
||
<number>10</number>
|
||
</property>
|
||
<item row="0" column="0">
|
||
<widget class="QRadioButton" name="radioButton1">
|
||
<property name="text">
|
||
<string>Вариант 1</string>
|
||
</property>
|
||
<property name="checked">
|
||
<bool>true</bool>
|
||
</property>
|
||
<attribute name="buttonGroup">
|
||
<string notr="true">buttonGroup</string>
|
||
</attribute>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QLabel" name="label">
|
||
<property name="text">
|
||
<string>Ввод текста:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QRadioButton" name="radioButton2">
|
||
<property name="text">
|
||
<string>Вариант 2</string>
|
||
</property>
|
||
<attribute name="buttonGroup">
|
||
<string notr="true">buttonGroup</string>
|
||
</attribute>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QLineEdit" name="lineEdit1"/>
|
||
</item>
|
||
<item row="1" column="2">
|
||
<widget class="QToolButton" name="toolButton1">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>30</width>
|
||
<height>24</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>...</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
<item>
|
||
<layout class="QGridLayout" name="gridLayout_2" columnstretch="1,2,1">
|
||
<property name="verticalSpacing">
|
||
<number>20</number>
|
||
</property>
|
||
<item row="0" column="0">
|
||
<spacer name="horizontalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>40</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QPushButton" name="pushButton1">
|
||
<property name="text">
|
||
<string>Кнопка 1</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="2">
|
||
<spacer name="horizontalSpacer_2">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>40</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QPushButton" name="pushButton2">
|
||
<property name="text">
|
||
<string>Кнопка 2</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<widget class="QPushButton" name="pushButton3">
|
||
<property name="text">
|
||
<string>Кнопка 3</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="1">
|
||
<spacer name="verticalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Vertical</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>20</width>
|
||
<height>28</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="4" column="1">
|
||
<widget class="QPushButton" name="pushButtonOpen">
|
||
<property name="text">
|
||
<string>Открыть каталог с логами</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QStatusBar" name="statusbar"/>
|
||
</widget>
|
||
<resources>
|
||
<include location="../_resources/main.qrc"/>
|
||
</resources>
|
||
<connections/>
|
||
<buttongroups>
|
||
<buttongroup name="buttonGroup"/>
|
||
</buttongroups>
|
||
</ui>
|