Calculator
/
mainwindow.ui
611 строк · 16.1 Кб
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">3<class>MainWindow</class>4<widget class="QMainWindow" name="MainWindow">5<property name="enabled">6<bool>true</bool>7</property>8<property name="geometry">9<rect>10<x>0</x>11<y>0</y>12<width>371</width>13<height>410</height>14</rect>15</property>16<property name="sizePolicy">17<sizepolicy hsizetype="Fixed" vsizetype="Fixed">18<horstretch>0</horstretch>19<verstretch>0</verstretch>20</sizepolicy>21</property>22<property name="minimumSize">23<size>24<width>371</width>25<height>410</height>26</size>27</property>28<property name="maximumSize">29<size>30<width>371</width>31<height>410</height>32</size>33</property>34<property name="focusPolicy">35<enum>Qt::StrongFocus</enum>36</property>37<property name="windowTitle">38<string>Calculator</string>39</property>40<property name="windowIcon">41<iconset resource="resourse.qrc">42<normaloff>:/res/media/calc.png</normaloff>:/res/media/calc.png</iconset>43</property>44<property name="styleSheet">45<string notr="true">QMainWindow{46background-color: rgb(40, 40, 40);
47border: 3px solid gray;
48}</string>49</property>50<widget class="QWidget" name="centralWidget">51<widget class="QLabel" name="result">52<property name="geometry">53<rect>54<x>10</x>55<y>10</y>56<width>349</width>57<height>61</height>58</rect>59</property>60<property name="styleSheet">61<string notr="true">QLabel{62background-color: rgb(212, 212, 212);
63qproperty-alignment: 'AlignVCenter | AlignRight';
64border: 2px solid gray;
65font: 75 11pt "MS Shell Dlg 2";66color:rgb(0, 0, 0);
67
68}
69</string>70</property>71<property name="text">72<string>0</string>73</property>74</widget>75<widget class="QWidget" name="layoutWidget">76<property name="geometry">77<rect>78<x>10</x>79<y>80</y>80<width>351</width>81<height>321</height>82</rect>83</property>84<layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0,0,0" columnstretch="0,0,0,0">85<property name="sizeConstraint">86<enum>QLayout::SetDefaultConstraint</enum>87</property>88<property name="leftMargin">89<number>0</number>90</property>91<property name="bottomMargin">92<number>0</number>93</property>94<property name="spacing">95<number>4</number>96</property>97<item row="0" column="0">98<widget class="QPushButton" name="pushButton_AC">99<property name="minimumSize">100<size>101<width>0</width>102<height>60</height>103</size>104</property>105<property name="focusPolicy">106<enum>Qt::NoFocus</enum>107</property>108<property name="styleSheet">109<string notr="true">QPushButton{110background-color: rgb(81, 81, 81);
111color:rgb(255, 255, 255);
112}</string>113</property>114<property name="text">115<string>AC</string>116</property>117</widget>118</item>119<item row="1" column="2">120<widget class="QPushButton" name="pushButton_9">121<property name="minimumSize">122<size>123<width>0</width>124<height>60</height>125</size>126</property>127<property name="focusPolicy">128<enum>Qt::NoFocus</enum>129</property>130<property name="styleSheet">131<string notr="true">QPushButton{132border: 1px solid gray;
133color:white;
134}
135QPushButton:pressed{
136background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
137stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
138} </string>139</property>140<property name="text">141<string>9</string>142</property>143</widget>144</item>145<item row="2" column="0">146<widget class="QPushButton" name="pushButton_4">147<property name="minimumSize">148<size>149<width>0</width>150<height>60</height>151</size>152</property>153<property name="focusPolicy">154<enum>Qt::NoFocus</enum>155</property>156<property name="styleSheet">157<string notr="true">QPushButton{158border: 1px solid gray;
159color:white;
160}
161QPushButton:pressed{
162background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
163stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
164} </string>165</property>166<property name="text">167<string>4</string>168</property>169</widget>170</item>171<item row="0" column="1">172<widget class="QPushButton" name="pushButton_plusminus">173<property name="minimumSize">174<size>175<width>0</width>176<height>60</height>177</size>178</property>179<property name="focusPolicy">180<enum>Qt::NoFocus</enum>181</property>182<property name="styleSheet">183<string notr="true">QPushButton{184background-color: rgb(81, 81, 81);
185color:rgb(255, 255, 255);
186}</string>187</property>188<property name="text">189<string>+/-</string>190</property>191</widget>192</item>193<item row="2" column="1">194<widget class="QPushButton" name="pushButton_5">195<property name="minimumSize">196<size>197<width>0</width>198<height>60</height>199</size>200</property>201<property name="focusPolicy">202<enum>Qt::NoFocus</enum>203</property>204<property name="styleSheet">205<string notr="true">QPushButton{206border: 1px solid gray;
207color:white;
208}
209QPushButton:pressed{
210background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
211stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
212} </string>213</property>214<property name="text">215<string>5</string>216</property>217</widget>218</item>219<item row="2" column="2">220<widget class="QPushButton" name="pushButton_6">221<property name="minimumSize">222<size>223<width>0</width>224<height>60</height>225</size>226</property>227<property name="focusPolicy">228<enum>Qt::NoFocus</enum>229</property>230<property name="styleSheet">231<string notr="true">QPushButton{232border: 1px solid gray;
233color:white;
234}
235QPushButton:pressed{
236background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
237stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
238} </string>239</property>240<property name="text">241<string>6</string>242</property>243</widget>244</item>245<item row="4" column="0" colspan="2">246<widget class="QPushButton" name="pushButton_0">247<property name="minimumSize">248<size>249<width>0</width>250<height>60</height>251</size>252</property>253<property name="focusPolicy">254<enum>Qt::NoFocus</enum>255</property>256<property name="layoutDirection">257<enum>Qt::LeftToRight</enum>258</property>259<property name="styleSheet">260<string notr="true">QPushButton{261background-color: rgb(81, 81, 81);
262color:rgb(255, 255, 255);
263}</string>264</property>265<property name="text">266<string>0</string>267</property>268</widget>269</item>270<item row="1" column="3">271<widget class="QPushButton" name="pushButton_x">272<property name="minimumSize">273<size>274<width>0</width>275<height>60</height>276</size>277</property>278<property name="focusPolicy">279<enum>Qt::NoFocus</enum>280</property>281<property name="styleSheet">282<string notr="true">QPushButton{283background-color: rgb(44, 44, 44);
284color:rgb(255, 255, 255);
285}</string>286</property>287<property name="text">288<string>x</string>289</property>290</widget>291</item>292<item row="2" column="3">293<widget class="QPushButton" name="pushButton_minus">294<property name="minimumSize">295<size>296<width>0</width>297<height>60</height>298</size>299</property>300<property name="focusPolicy">301<enum>Qt::NoFocus</enum>302</property>303<property name="styleSheet">304<string notr="true">QPushButton{305background-color: rgb(44, 44, 44);
306color:rgb(255, 255, 255);
307}</string>308</property>309<property name="text">310<string>-</string>311</property>312</widget>313</item>314<item row="3" column="2">315<widget class="QPushButton" name="pushButton_3">316<property name="minimumSize">317<size>318<width>0</width>319<height>60</height>320</size>321</property>322<property name="focusPolicy">323<enum>Qt::NoFocus</enum>324</property>325<property name="styleSheet">326<string notr="true">QPushButton{327border: 1px solid gray;
328color:white;
329}
330QPushButton:pressed{
331background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
332stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
333} </string>334</property>335<property name="text">336<string>3</string>337</property>338</widget>339</item>340<item row="3" column="3">341<widget class="QPushButton" name="pushButton_plus">342<property name="sizePolicy">343<sizepolicy hsizetype="Minimum" vsizetype="Fixed">344<horstretch>100</horstretch>345<verstretch>100</verstretch>346</sizepolicy>347</property>348<property name="minimumSize">349<size>350<width>0</width>351<height>60</height>352</size>353</property>354<property name="focusPolicy">355<enum>Qt::NoFocus</enum>356</property>357<property name="styleSheet">358<string notr="true">QPushButton{359background-color: rgb(44, 44, 44);
360color:rgb(255, 255, 255);
361}</string>362</property>363<property name="text">364<string>+</string>365</property>366</widget>367</item>368<item row="3" column="0">369<widget class="QPushButton" name="pushButton_1">370<property name="minimumSize">371<size>372<width>0</width>373<height>60</height>374</size>375</property>376<property name="focusPolicy">377<enum>Qt::NoFocus</enum>378</property>379<property name="styleSheet">380<string notr="true">QPushButton{381border: 1px solid gray;
382color:white;
383}
384QPushButton:pressed{
385background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
386stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
387} </string>388</property>389<property name="text">390<string>1</string>391</property>392</widget>393</item>394<item row="1" column="0">395<widget class="QPushButton" name="pushButton_7">396<property name="minimumSize">397<size>398<width>0</width>399<height>60</height>400</size>401</property>402<property name="focusPolicy">403<enum>Qt::NoFocus</enum>404</property>405<property name="styleSheet">406<string notr="true">QPushButton{407border: 1px solid gray;
408color:white;
409}
410QPushButton:pressed{
411background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
412stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
413} </string>414</property>415<property name="text">416<string>7</string>417</property>418</widget>419</item>420<item row="4" column="3">421<widget class="QPushButton" name="pushButton_eq">422<property name="sizePolicy">423<sizepolicy hsizetype="Maximum" vsizetype="Maximum">424<horstretch>1</horstretch>425<verstretch>1</verstretch>426</sizepolicy>427</property>428<property name="minimumSize">429<size>430<width>0</width>431<height>60</height>432</size>433</property>434<property name="focusPolicy">435<enum>Qt::NoFocus</enum>436</property>437<property name="styleSheet">438<string notr="true">QPushButton{439background-color: rgb(44, 44, 44);
440color:rgb(255, 255, 255);
441}</string>442</property>443<property name="text">444<string>=</string>445</property>446<property name="autoDefault">447<bool>false</bool>448</property>449</widget>450</item>451<item row="4" column="2">452<widget class="QPushButton" name="pushButton_point">453<property name="enabled">454<bool>true</bool>455</property>456<property name="sizePolicy">457<sizepolicy hsizetype="Maximum" vsizetype="Fixed">458<horstretch>0</horstretch>459<verstretch>0</verstretch>460</sizepolicy>461</property>462<property name="minimumSize">463<size>464<width>0</width>465<height>60</height>466</size>467</property>468<property name="baseSize">469<size>470<width>0</width>471<height>0</height>472</size>473</property>474<property name="focusPolicy">475<enum>Qt::NoFocus</enum>476</property>477<property name="layoutDirection">478<enum>Qt::LeftToRight</enum>479</property>480<property name="styleSheet">481<string notr="true">QPushButton{482background-color: rgb(81, 81, 81);
483color:rgb(255, 255, 255);
484}</string>485</property>486<property name="text">487<string>.</string>488</property>489<property name="iconSize">490<size>491<width>20</width>492<height>20</height>493</size>494</property>495<property name="autoDefault">496<bool>false</bool>497</property>498<property name="default">499<bool>false</bool>500</property>501<property name="flat">502<bool>false</bool>503</property>504</widget>505</item>506<item row="0" column="2">507<widget class="QPushButton" name="pushButton_proc">508<property name="minimumSize">509<size>510<width>0</width>511<height>60</height>512</size>513</property>514<property name="focusPolicy">515<enum>Qt::NoFocus</enum>516</property>517<property name="styleSheet">518<string notr="true">QPushButton{519background-color: rgb(81, 81, 81);
520color:rgb(255, 255, 255);
521}</string>522</property>523<property name="text">524<string>%</string>525</property>526</widget>527</item>528<item row="1" column="1">529<widget class="QPushButton" name="pushButton_8">530<property name="minimumSize">531<size>532<width>0</width>533<height>60</height>534</size>535</property>536<property name="focusPolicy">537<enum>Qt::NoFocus</enum>538</property>539<property name="styleSheet">540<string notr="true">QPushButton{541border: 1px solid gray;
542color:white;
543}
544QPushButton:pressed{
545background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
546stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
547} </string>548</property>549<property name="text">550<string>8</string>551</property>552</widget>553</item>554<item row="3" column="1">555<widget class="QPushButton" name="pushButton_2">556<property name="minimumSize">557<size>558<width>0</width>559<height>60</height>560</size>561</property>562<property name="focusPolicy">563<enum>Qt::NoFocus</enum>564</property>565<property name="styleSheet">566<string notr="true">QPushButton{567border: 1px solid gray;
568color:white;
569}
570QPushButton:pressed{
571background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1,
572stop: 0 #BEBEBE, stop: 1 rgb(100,100,100) );
573} </string>574</property>575<property name="text">576<string>2</string>577</property>578</widget>579</item>580<item row="0" column="3">581<widget class="QPushButton" name="pushButton_devide">582<property name="minimumSize">583<size>584<width>0</width>585<height>60</height>586</size>587</property>588<property name="focusPolicy">589<enum>Qt::NoFocus</enum>590</property>591<property name="styleSheet">592<string notr="true">QPushButton{593background-color: rgb(44, 44, 44);
594color:rgb(255, 255, 255);
595}</string>596</property>597<property name="text">598<string>/</string>599</property>600</widget>601</item>602</layout>603</widget>604</widget>605</widget>606<layoutdefault spacing="6" margin="11"/>607<resources>608<include location="resourse.qrc"/>609</resources>610<connections/>611</ui>612