newswidget.ui 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>NewsWidget</class>
  4. <widget class="QWidget" name="NewsWidget">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>860</width>
  10. <height>491</height>
  11. </rect>
  12. </property>
  13. <property name="sizePolicy">
  14. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  15. <horstretch>0</horstretch>
  16. <verstretch>0</verstretch>
  17. </sizepolicy>
  18. </property>
  19. <property name="windowTitle">
  20. <string>Form</string>
  21. </property>
  22. <layout class="QVBoxLayout" name="verticalLayout">
  23. <item>
  24. <widget class="QScrollArea" name="scrollArea">
  25. <property name="sizePolicy">
  26. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  27. <horstretch>0</horstretch>
  28. <verstretch>0</verstretch>
  29. </sizepolicy>
  30. </property>
  31. <property name="autoFillBackground">
  32. <bool>false</bool>
  33. </property>
  34. <property name="styleSheet">
  35. <string notr="true">QScrollArea{
  36. background: transparent;
  37. }
  38. QScrollArea &gt; QWidget &gt; QWidget { background: transparent; }
  39. QScrollBar:vertical {
  40. border: 0px solid grey;
  41. background: transparent;
  42. width: 10px;
  43. margin: 22px 0 22px 0;
  44. }
  45. QScrollBar::handle:vertical {
  46. background-color: rgba(129, 129, 129, 150);
  47. min-height: 10px;
  48. border-radius: 5px;
  49. }
  50. QScrollBar::add-line:vertical {
  51. border: 0px solid grey;
  52. background: transparent;
  53. height: 1px;
  54. subcontrol-position: bottom;
  55. subcontrol-origin: margin;
  56. }
  57. QScrollBar::sub-line:vertical {
  58. border: 0px solid grey;
  59. background: transparent;
  60. height: 1px;
  61. subcontrol-position: top;
  62. subcontrol-origin: margin;
  63. }
  64. QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
  65. border: 0px;
  66. width: 3px;
  67. height: 3px;
  68. background: transparent;
  69. }
  70. QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
  71. background: none;
  72. }</string>
  73. </property>
  74. <property name="frameShape">
  75. <enum>QFrame::NoFrame</enum>
  76. </property>
  77. <property name="frameShadow">
  78. <enum>QFrame::Plain</enum>
  79. </property>
  80. <property name="lineWidth">
  81. <number>0</number>
  82. </property>
  83. <property name="horizontalScrollBarPolicy">
  84. <enum>Qt::ScrollBarAlwaysOff</enum>
  85. </property>
  86. <property name="sizeAdjustPolicy">
  87. <enum>QAbstractScrollArea::AdjustIgnored</enum>
  88. </property>
  89. <property name="widgetResizable">
  90. <bool>true</bool>
  91. </property>
  92. <property name="alignment">
  93. <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
  94. </property>
  95. <widget class="QWidget" name="scrollAreaWidgetContents">
  96. <property name="geometry">
  97. <rect>
  98. <x>0</x>
  99. <y>0</y>
  100. <width>838</width>
  101. <height>469</height>
  102. </rect>
  103. </property>
  104. <property name="autoFillBackground">
  105. <bool>false</bool>
  106. </property>
  107. <layout class="QGridLayout" name="news_layout">
  108. <property name="leftMargin">
  109. <number>11</number>
  110. </property>
  111. <property name="topMargin">
  112. <number>11</number>
  113. </property>
  114. <property name="rightMargin">
  115. <number>11</number>
  116. </property>
  117. <property name="bottomMargin">
  118. <number>11</number>
  119. </property>
  120. <property name="spacing">
  121. <number>7</number>
  122. </property>
  123. <item row="0" column="0">
  124. <widget class="QWidget" name="test_news_piece" native="true">
  125. <property name="sizePolicy">
  126. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  127. <horstretch>0</horstretch>
  128. <verstretch>0</verstretch>
  129. </sizepolicy>
  130. </property>
  131. <property name="styleSheet">
  132. <string notr="true">QWidget{
  133. border-radius: 20px;
  134. background-color: rgba(30, 0, 0, 100);
  135. color: white;
  136. }
  137. QLabel{
  138. border-radius: 2px;
  139. background-color:rgba(0,0,0,0);
  140. }</string>
  141. </property>
  142. <layout class="QGridLayout" name="news_piece_layout">
  143. <property name="leftMargin">
  144. <number>11</number>
  145. </property>
  146. <property name="topMargin">
  147. <number>11</number>
  148. </property>
  149. <property name="rightMargin">
  150. <number>11</number>
  151. </property>
  152. <property name="bottomMargin">
  153. <number>11</number>
  154. </property>
  155. <property name="spacing">
  156. <number>4</number>
  157. </property>
  158. <item row="0" column="0" rowspan="2">
  159. <widget class="QLabel" name="iconLabel">
  160. <property name="sizePolicy">
  161. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  162. <horstretch>0</horstretch>
  163. <verstretch>0</verstretch>
  164. </sizepolicy>
  165. </property>
  166. <property name="minimumSize">
  167. <size>
  168. <width>60</width>
  169. <height>60</height>
  170. </size>
  171. </property>
  172. <property name="maximumSize">
  173. <size>
  174. <width>60</width>
  175. <height>60</height>
  176. </size>
  177. </property>
  178. <property name="styleSheet">
  179. <string notr="true">QWidget{
  180. border-radius: 10px;
  181. }</string>
  182. </property>
  183. <property name="frameShape">
  184. <enum>QFrame::NoFrame</enum>
  185. </property>
  186. <property name="text">
  187. <string/>
  188. </property>
  189. <property name="pixmap">
  190. <pixmap resource="../common.qrc">:/assets/buttons/question.png</pixmap>
  191. </property>
  192. </widget>
  193. </item>
  194. <item row="0" column="1">
  195. <widget class="QLabel" name="titleLabel_title">
  196. <property name="sizePolicy">
  197. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  198. <horstretch>0</horstretch>
  199. <verstretch>0</verstretch>
  200. </sizepolicy>
  201. </property>
  202. <property name="font">
  203. <font>
  204. <family>Trebuchet MS</family>
  205. <pointsize>11</pointsize>
  206. </font>
  207. </property>
  208. <property name="styleSheet">
  209. <string notr="true">color: white;
  210. text-decoration: none;</string>
  211. </property>
  212. <property name="text">
  213. <string>Тестовая новость - Название</string>
  214. </property>
  215. <property name="alignment">
  216. <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
  217. </property>
  218. <property name="wordWrap">
  219. <bool>true</bool>
  220. </property>
  221. </widget>
  222. </item>
  223. <item row="1" column="1">
  224. <widget class="QLabel" name="contentLabel">
  225. <property name="sizePolicy">
  226. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  227. <horstretch>0</horstretch>
  228. <verstretch>0</verstretch>
  229. </sizepolicy>
  230. </property>
  231. <property name="text">
  232. <string>Контент контент контент контент контент контент контент контент контент контент контент контент</string>
  233. </property>
  234. <property name="alignment">
  235. <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
  236. </property>
  237. <property name="wordWrap">
  238. <bool>false</bool>
  239. </property>
  240. </widget>
  241. </item>
  242. </layout>
  243. </widget>
  244. </item>
  245. </layout>
  246. </widget>
  247. </widget>
  248. </item>
  249. </layout>
  250. </widget>
  251. <resources>
  252. <include location="../common.qrc"/>
  253. </resources>
  254. <connections/>
  255. </ui>