mainwindow.ui 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128
  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="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>794</width>
  10. <height>522</height>
  11. </rect>
  12. </property>
  13. <property name="font">
  14. <font>
  15. <family>宋体</family>
  16. <pointsize>10</pointsize>
  17. </font>
  18. </property>
  19. <property name="windowTitle">
  20. <string>QChart绘图详细功能</string>
  21. </property>
  22. <widget class="QWidget" name="centralWidget">
  23. <layout class="QHBoxLayout" name="horizontalLayout">
  24. <property name="spacing">
  25. <number>5</number>
  26. </property>
  27. <property name="leftMargin">
  28. <number>5</number>
  29. </property>
  30. <property name="topMargin">
  31. <number>5</number>
  32. </property>
  33. <property name="rightMargin">
  34. <number>5</number>
  35. </property>
  36. <property name="bottomMargin">
  37. <number>5</number>
  38. </property>
  39. <item>
  40. <widget class="QSplitter" name="splitter">
  41. <property name="orientation">
  42. <enum>Qt::Horizontal</enum>
  43. </property>
  44. <widget class="QToolBox" name="toolBox">
  45. <property name="minimumSize">
  46. <size>
  47. <width>260</width>
  48. <height>0</height>
  49. </size>
  50. </property>
  51. <property name="maximumSize">
  52. <size>
  53. <width>400</width>
  54. <height>16777215</height>
  55. </size>
  56. </property>
  57. <property name="frameShape">
  58. <enum>QFrame::NoFrame</enum>
  59. </property>
  60. <property name="currentIndex">
  61. <number>0</number>
  62. </property>
  63. <widget class="QWidget" name="page">
  64. <property name="geometry">
  65. <rect>
  66. <x>0</x>
  67. <y>0</y>
  68. <width>385</width>
  69. <height>383</height>
  70. </rect>
  71. </property>
  72. <attribute name="icon">
  73. <iconset resource="res.qrc">
  74. <normaloff>:/images/images/3.ico</normaloff>:/images/images/3.ico</iconset>
  75. </attribute>
  76. <attribute name="label">
  77. <string>图表设置</string>
  78. </attribute>
  79. <layout class="QVBoxLayout" name="verticalLayout_5">
  80. <property name="spacing">
  81. <number>3</number>
  82. </property>
  83. <property name="leftMargin">
  84. <number>3</number>
  85. </property>
  86. <property name="topMargin">
  87. <number>3</number>
  88. </property>
  89. <property name="rightMargin">
  90. <number>3</number>
  91. </property>
  92. <property name="bottomMargin">
  93. <number>3</number>
  94. </property>
  95. <item>
  96. <widget class="QScrollArea" name="scrollArea_2">
  97. <property name="widgetResizable">
  98. <bool>true</bool>
  99. </property>
  100. <widget class="QWidget" name="scrollAreaWidgetContents_2">
  101. <property name="geometry">
  102. <rect>
  103. <x>0</x>
  104. <y>-64</y>
  105. <width>363</width>
  106. <height>532</height>
  107. </rect>
  108. </property>
  109. <layout class="QVBoxLayout" name="verticalLayout_4">
  110. <item>
  111. <widget class="QGroupBox" name="groupBox">
  112. <property name="title">
  113. <string>标题</string>
  114. </property>
  115. <layout class="QGridLayout" name="gridLayout_2">
  116. <item row="0" column="0">
  117. <widget class="QLineEdit" name="editTitle"/>
  118. </item>
  119. <item row="0" column="1">
  120. <widget class="QPushButton" name="btnSetTitle">
  121. <property name="toolTip">
  122. <string>设置标题文字</string>
  123. </property>
  124. <property name="text">
  125. <string>设置</string>
  126. </property>
  127. </widget>
  128. </item>
  129. <item row="1" column="0" colspan="2">
  130. <widget class="QPushButton" name="btnSetTitleFont">
  131. <property name="text">
  132. <string>设置标题字体</string>
  133. </property>
  134. </widget>
  135. </item>
  136. </layout>
  137. </widget>
  138. </item>
  139. <item>
  140. <widget class="QGroupBox" name="groupBox_4">
  141. <property name="title">
  142. <string>图例</string>
  143. </property>
  144. <layout class="QGridLayout" name="gridLayout_9">
  145. <item row="0" column="0">
  146. <widget class="QRadioButton" name="radioButton">
  147. <property name="text">
  148. <string>上方</string>
  149. </property>
  150. <property name="checked">
  151. <bool>true</bool>
  152. </property>
  153. </widget>
  154. </item>
  155. <item row="0" column="1">
  156. <widget class="QRadioButton" name="radioButton_2">
  157. <property name="text">
  158. <string>下方</string>
  159. </property>
  160. </widget>
  161. </item>
  162. <item row="1" column="0">
  163. <widget class="QRadioButton" name="radioButton_3">
  164. <property name="text">
  165. <string>左侧</string>
  166. </property>
  167. </widget>
  168. </item>
  169. <item row="1" column="1">
  170. <widget class="QRadioButton" name="radioButton_4">
  171. <property name="text">
  172. <string>右侧</string>
  173. </property>
  174. </widget>
  175. </item>
  176. <item row="2" column="0">
  177. <widget class="QCheckBox" name="chkLegendVisible">
  178. <property name="text">
  179. <string>图例可见</string>
  180. </property>
  181. <property name="checked">
  182. <bool>true</bool>
  183. </property>
  184. </widget>
  185. </item>
  186. <item row="2" column="1">
  187. <widget class="QCheckBox" name="chkBoxLegendBackground">
  188. <property name="text">
  189. <string>背景可见</string>
  190. </property>
  191. </widget>
  192. </item>
  193. <item row="3" column="0">
  194. <widget class="QPushButton" name="btnLegendFont">
  195. <property name="text">
  196. <string>字体</string>
  197. </property>
  198. </widget>
  199. </item>
  200. <item row="3" column="1">
  201. <widget class="QPushButton" name="btnLegendlabelColor">
  202. <property name="text">
  203. <string>标签颜色</string>
  204. </property>
  205. </widget>
  206. </item>
  207. </layout>
  208. </widget>
  209. </item>
  210. <item>
  211. <widget class="QGroupBox" name="groupBox_2">
  212. <property name="title">
  213. <string>边距</string>
  214. </property>
  215. <layout class="QGridLayout" name="gridLayout">
  216. <item row="0" column="0">
  217. <widget class="QLabel" name="label">
  218. <property name="text">
  219. <string>左边距</string>
  220. </property>
  221. <property name="alignment">
  222. <set>Qt::AlignCenter</set>
  223. </property>
  224. </widget>
  225. </item>
  226. <item row="0" column="1">
  227. <widget class="QSpinBox" name="spinMarginLeft">
  228. <property name="minimum">
  229. <number>10</number>
  230. </property>
  231. <property name="maximum">
  232. <number>500</number>
  233. </property>
  234. </widget>
  235. </item>
  236. <item row="1" column="0">
  237. <widget class="QLabel" name="label_2">
  238. <property name="text">
  239. <string>右边距</string>
  240. </property>
  241. <property name="alignment">
  242. <set>Qt::AlignCenter</set>
  243. </property>
  244. </widget>
  245. </item>
  246. <item row="1" column="1">
  247. <widget class="QSpinBox" name="spinMarginRight">
  248. <property name="minimum">
  249. <number>10</number>
  250. </property>
  251. <property name="maximum">
  252. <number>500</number>
  253. </property>
  254. </widget>
  255. </item>
  256. <item row="2" column="0">
  257. <widget class="QLabel" name="label_3">
  258. <property name="text">
  259. <string>上边距</string>
  260. </property>
  261. <property name="alignment">
  262. <set>Qt::AlignCenter</set>
  263. </property>
  264. </widget>
  265. </item>
  266. <item row="2" column="1">
  267. <widget class="QSpinBox" name="spinMarginTop">
  268. <property name="minimum">
  269. <number>10</number>
  270. </property>
  271. <property name="maximum">
  272. <number>500</number>
  273. </property>
  274. </widget>
  275. </item>
  276. <item row="3" column="0">
  277. <widget class="QLabel" name="label_4">
  278. <property name="text">
  279. <string>下边距</string>
  280. </property>
  281. <property name="alignment">
  282. <set>Qt::AlignCenter</set>
  283. </property>
  284. </widget>
  285. </item>
  286. <item row="3" column="1">
  287. <widget class="QSpinBox" name="spinMarginBottom">
  288. <property name="minimum">
  289. <number>10</number>
  290. </property>
  291. <property name="maximum">
  292. <number>500</number>
  293. </property>
  294. </widget>
  295. </item>
  296. <item row="4" column="0" colspan="2">
  297. <widget class="QPushButton" name="btnSetMargin">
  298. <property name="text">
  299. <string>设置边距</string>
  300. </property>
  301. </widget>
  302. </item>
  303. </layout>
  304. </widget>
  305. </item>
  306. <item>
  307. <widget class="QGroupBox" name="groupBox_15">
  308. <property name="title">
  309. <string>动画效果</string>
  310. </property>
  311. <layout class="QGridLayout" name="gridLayout_10">
  312. <item row="0" column="0">
  313. <widget class="QLabel" name="label_6">
  314. <property name="text">
  315. <string>动画效果</string>
  316. </property>
  317. <property name="alignment">
  318. <set>Qt::AlignCenter</set>
  319. </property>
  320. </widget>
  321. </item>
  322. <item row="0" column="1">
  323. <widget class="QComboBox" name="cBoxAnimation">
  324. <item>
  325. <property name="text">
  326. <string>NoAnimation</string>
  327. </property>
  328. </item>
  329. <item>
  330. <property name="text">
  331. <string>GridAxisAnimations</string>
  332. </property>
  333. </item>
  334. <item>
  335. <property name="text">
  336. <string>SeriesAnimations</string>
  337. </property>
  338. </item>
  339. <item>
  340. <property name="text">
  341. <string>AllAnimations</string>
  342. </property>
  343. </item>
  344. </widget>
  345. </item>
  346. <item row="1" column="0">
  347. <widget class="QLabel" name="label_8">
  348. <property name="text">
  349. <string>主 题</string>
  350. </property>
  351. <property name="alignment">
  352. <set>Qt::AlignCenter</set>
  353. </property>
  354. </widget>
  355. </item>
  356. <item row="1" column="1">
  357. <widget class="QComboBox" name="cBoxTheme">
  358. <item>
  359. <property name="text">
  360. <string>Light</string>
  361. </property>
  362. </item>
  363. <item>
  364. <property name="text">
  365. <string>BlueCerulean</string>
  366. </property>
  367. </item>
  368. <item>
  369. <property name="text">
  370. <string>Dark</string>
  371. </property>
  372. </item>
  373. <item>
  374. <property name="text">
  375. <string>BrownSand</string>
  376. </property>
  377. </item>
  378. <item>
  379. <property name="text">
  380. <string>BlueNcs</string>
  381. </property>
  382. </item>
  383. <item>
  384. <property name="text">
  385. <string>HighContrast</string>
  386. </property>
  387. </item>
  388. <item>
  389. <property name="text">
  390. <string>BlueIcy</string>
  391. </property>
  392. </item>
  393. <item>
  394. <property name="text">
  395. <string>Qt</string>
  396. </property>
  397. </item>
  398. </widget>
  399. </item>
  400. </layout>
  401. </widget>
  402. </item>
  403. </layout>
  404. </widget>
  405. </widget>
  406. </item>
  407. </layout>
  408. </widget>
  409. <widget class="QWidget" name="page_2">
  410. <property name="geometry">
  411. <rect>
  412. <x>0</x>
  413. <y>0</y>
  414. <width>385</width>
  415. <height>383</height>
  416. </rect>
  417. </property>
  418. <attribute name="icon">
  419. <iconset resource="res.qrc">
  420. <normaloff>:/images/images/dis3.ico</normaloff>:/images/images/dis3.ico</iconset>
  421. </attribute>
  422. <attribute name="label">
  423. <string>曲线设置</string>
  424. </attribute>
  425. <layout class="QVBoxLayout" name="verticalLayout_10">
  426. <property name="spacing">
  427. <number>3</number>
  428. </property>
  429. <property name="leftMargin">
  430. <number>3</number>
  431. </property>
  432. <property name="topMargin">
  433. <number>3</number>
  434. </property>
  435. <property name="rightMargin">
  436. <number>3</number>
  437. </property>
  438. <property name="bottomMargin">
  439. <number>3</number>
  440. </property>
  441. <item>
  442. <widget class="QScrollArea" name="scrollArea_3">
  443. <property name="widgetResizable">
  444. <bool>true</bool>
  445. </property>
  446. <widget class="QWidget" name="scrollAreaWidgetContents_3">
  447. <property name="geometry">
  448. <rect>
  449. <x>0</x>
  450. <y>0</y>
  451. <width>363</width>
  452. <height>431</height>
  453. </rect>
  454. </property>
  455. <layout class="QVBoxLayout" name="verticalLayout_9">
  456. <item>
  457. <widget class="QGroupBox" name="groupBox_12">
  458. <property name="maximumSize">
  459. <size>
  460. <width>16777215</width>
  461. <height>60</height>
  462. </size>
  463. </property>
  464. <property name="title">
  465. <string>选择操作序列</string>
  466. </property>
  467. <layout class="QHBoxLayout" name="horizontalLayout_3">
  468. <item>
  469. <widget class="QRadioButton" name="radioSeries0">
  470. <property name="text">
  471. <string>Sin曲线</string>
  472. </property>
  473. <property name="checked">
  474. <bool>true</bool>
  475. </property>
  476. </widget>
  477. </item>
  478. <item>
  479. <widget class="QRadioButton" name="radioSeries1">
  480. <property name="text">
  481. <string>Cos曲线</string>
  482. </property>
  483. </widget>
  484. </item>
  485. </layout>
  486. </widget>
  487. </item>
  488. <item>
  489. <widget class="QGroupBox" name="groupBox_13">
  490. <property name="title">
  491. <string>曲线外观</string>
  492. </property>
  493. <layout class="QGridLayout" name="gridLayout_3">
  494. <item row="0" column="0">
  495. <widget class="QPushButton" name="btnSeriesName">
  496. <property name="text">
  497. <string>序列名称</string>
  498. </property>
  499. </widget>
  500. </item>
  501. <item row="0" column="1">
  502. <widget class="QLineEdit" name="editSeriesName">
  503. <property name="text">
  504. <string>Sin曲线</string>
  505. </property>
  506. </widget>
  507. </item>
  508. <item row="1" column="0">
  509. <widget class="QCheckBox" name="chkSeriesVisible">
  510. <property name="text">
  511. <string>序列可见</string>
  512. </property>
  513. <property name="checked">
  514. <bool>true</bool>
  515. </property>
  516. </widget>
  517. </item>
  518. <item row="1" column="1">
  519. <widget class="QCheckBox" name="chkPointVisible">
  520. <property name="text">
  521. <string>数据点可见</string>
  522. </property>
  523. </widget>
  524. </item>
  525. <item row="2" column="0">
  526. <widget class="QPushButton" name="btnSeriesColor">
  527. <property name="text">
  528. <string>曲线颜色</string>
  529. </property>
  530. </widget>
  531. </item>
  532. <item row="2" column="1">
  533. <widget class="QPushButton" name="btnSeriesPen">
  534. <property name="text">
  535. <string>曲线Pen</string>
  536. </property>
  537. </widget>
  538. </item>
  539. <item row="3" column="0">
  540. <widget class="QLabel" name="label_5">
  541. <property name="text">
  542. <string>透明度</string>
  543. </property>
  544. <property name="alignment">
  545. <set>Qt::AlignCenter</set>
  546. </property>
  547. </widget>
  548. </item>
  549. <item row="3" column="1">
  550. <widget class="QSlider" name="sliderSeriesOpacity">
  551. <property name="maximum">
  552. <number>10</number>
  553. </property>
  554. <property name="pageStep">
  555. <number>2</number>
  556. </property>
  557. <property name="value">
  558. <number>10</number>
  559. </property>
  560. <property name="orientation">
  561. <enum>Qt::Horizontal</enum>
  562. </property>
  563. </widget>
  564. </item>
  565. </layout>
  566. </widget>
  567. </item>
  568. <item>
  569. <widget class="QGroupBox" name="groupBox_3">
  570. <property name="title">
  571. <string>数据点标签</string>
  572. </property>
  573. <layout class="QVBoxLayout" name="verticalLayout_7">
  574. <item>
  575. <widget class="QCheckBox" name="chkPointLabelVisible">
  576. <property name="text">
  577. <string>数据点标签可见</string>
  578. </property>
  579. </widget>
  580. </item>
  581. <item>
  582. <widget class="QPushButton" name="btnSeriesLabColor">
  583. <property name="text">
  584. <string>标签颜色</string>
  585. </property>
  586. </widget>
  587. </item>
  588. <item>
  589. <widget class="QPushButton" name="btnSeriesLabFont">
  590. <property name="text">
  591. <string>标签字体</string>
  592. </property>
  593. </widget>
  594. </item>
  595. <item>
  596. <widget class="QGroupBox" name="groupBox_14">
  597. <property name="title">
  598. <string>标签格式</string>
  599. </property>
  600. <layout class="QVBoxLayout" name="verticalLayout_6">
  601. <item>
  602. <widget class="QRadioButton" name="radioSeriesLabFormat0">
  603. <property name="text">
  604. <string>@yPoint</string>
  605. </property>
  606. <property name="checked">
  607. <bool>true</bool>
  608. </property>
  609. </widget>
  610. </item>
  611. <item>
  612. <widget class="QRadioButton" name="radioSeriesLabFormat1">
  613. <property name="text">
  614. <string>(@xPoint, @yPoint)</string>
  615. </property>
  616. </widget>
  617. </item>
  618. </layout>
  619. </widget>
  620. </item>
  621. </layout>
  622. </widget>
  623. </item>
  624. </layout>
  625. </widget>
  626. </widget>
  627. </item>
  628. </layout>
  629. </widget>
  630. <widget class="QWidget" name="page_3">
  631. <property name="geometry">
  632. <rect>
  633. <x>0</x>
  634. <y>0</y>
  635. <width>385</width>
  636. <height>383</height>
  637. </rect>
  638. </property>
  639. <attribute name="icon">
  640. <iconset resource="res.qrc">
  641. <normaloff>:/images/images/39.ico</normaloff>:/images/images/39.ico</iconset>
  642. </attribute>
  643. <attribute name="label">
  644. <string>坐标轴设置</string>
  645. </attribute>
  646. <layout class="QVBoxLayout" name="verticalLayout_3">
  647. <property name="spacing">
  648. <number>3</number>
  649. </property>
  650. <property name="leftMargin">
  651. <number>3</number>
  652. </property>
  653. <property name="topMargin">
  654. <number>3</number>
  655. </property>
  656. <property name="rightMargin">
  657. <number>3</number>
  658. </property>
  659. <property name="bottomMargin">
  660. <number>3</number>
  661. </property>
  662. <item>
  663. <widget class="QScrollArea" name="scrollArea">
  664. <property name="verticalScrollBarPolicy">
  665. <enum>Qt::ScrollBarAsNeeded</enum>
  666. </property>
  667. <property name="widgetResizable">
  668. <bool>true</bool>
  669. </property>
  670. <widget class="QWidget" name="scrollAreaWidgetContents">
  671. <property name="geometry">
  672. <rect>
  673. <x>0</x>
  674. <y>-459</y>
  675. <width>363</width>
  676. <height>834</height>
  677. </rect>
  678. </property>
  679. <layout class="QVBoxLayout" name="verticalLayout_2">
  680. <property name="spacing">
  681. <number>3</number>
  682. </property>
  683. <property name="leftMargin">
  684. <number>3</number>
  685. </property>
  686. <property name="topMargin">
  687. <number>3</number>
  688. </property>
  689. <property name="rightMargin">
  690. <number>3</number>
  691. </property>
  692. <property name="bottomMargin">
  693. <number>3</number>
  694. </property>
  695. <item>
  696. <widget class="QGroupBox" name="groupBox_7">
  697. <property name="title">
  698. <string>设置坐标轴对象</string>
  699. </property>
  700. <layout class="QHBoxLayout" name="horizontalLayout_2">
  701. <item>
  702. <widget class="QRadioButton" name="radioX">
  703. <property name="text">
  704. <string>X轴</string>
  705. </property>
  706. <property name="checked">
  707. <bool>true</bool>
  708. </property>
  709. </widget>
  710. </item>
  711. <item>
  712. <widget class="QRadioButton" name="radioY">
  713. <property name="text">
  714. <string>Y轴</string>
  715. </property>
  716. <property name="checked">
  717. <bool>false</bool>
  718. </property>
  719. </widget>
  720. </item>
  721. </layout>
  722. </widget>
  723. </item>
  724. <item>
  725. <widget class="QGroupBox" name="groupBox_8">
  726. <property name="title">
  727. <string>坐标轴总体</string>
  728. </property>
  729. <layout class="QGridLayout" name="gridLayout_4">
  730. <item row="0" column="0">
  731. <widget class="QLabel" name="label_7">
  732. <property name="text">
  733. <string>最小值</string>
  734. </property>
  735. </widget>
  736. </item>
  737. <item row="0" column="1">
  738. <widget class="QDoubleSpinBox" name="spinAxisMin">
  739. <property name="minimum">
  740. <double>-1000.000000000000000</double>
  741. </property>
  742. <property name="maximum">
  743. <double>1000.000000000000000</double>
  744. </property>
  745. </widget>
  746. </item>
  747. <item row="1" column="0">
  748. <widget class="QLabel" name="label_11">
  749. <property name="text">
  750. <string>最大值</string>
  751. </property>
  752. </widget>
  753. </item>
  754. <item row="1" column="1">
  755. <widget class="QDoubleSpinBox" name="spinAxisMax">
  756. <property name="minimum">
  757. <double>-1000.000000000000000</double>
  758. </property>
  759. <property name="maximum">
  760. <double>1000.000000000000000</double>
  761. </property>
  762. <property name="value">
  763. <double>10.000000000000000</double>
  764. </property>
  765. </widget>
  766. </item>
  767. <item row="2" column="0" colspan="2">
  768. <widget class="QCheckBox" name="chkBoxVisible">
  769. <property name="text">
  770. <string>isVisible</string>
  771. </property>
  772. <property name="checked">
  773. <bool>true</bool>
  774. </property>
  775. </widget>
  776. </item>
  777. <item row="3" column="0" colspan="2">
  778. <widget class="QPushButton" name="btnSetAxisRange">
  779. <property name="text">
  780. <string>设置坐标范围</string>
  781. </property>
  782. </widget>
  783. </item>
  784. </layout>
  785. </widget>
  786. </item>
  787. <item>
  788. <widget class="QGroupBox" name="groupBox_6">
  789. <property name="title">
  790. <string>轴标题</string>
  791. </property>
  792. <layout class="QGridLayout" name="gridLayout_6">
  793. <item row="0" column="1" colspan="2">
  794. <widget class="QLineEdit" name="editAxisTitle">
  795. <property name="text">
  796. <string>time(secs)</string>
  797. </property>
  798. </widget>
  799. </item>
  800. <item row="1" column="2">
  801. <widget class="QPushButton" name="btnAxisSetTitleFont">
  802. <property name="text">
  803. <string>设置字体</string>
  804. </property>
  805. </widget>
  806. </item>
  807. <item row="0" column="0">
  808. <widget class="QPushButton" name="btnAxisSetTitle">
  809. <property name="text">
  810. <string>设置标题</string>
  811. </property>
  812. </widget>
  813. </item>
  814. <item row="1" column="0" colspan="2">
  815. <widget class="QCheckBox" name="chkBoxAxisTitle">
  816. <property name="text">
  817. <string>isTitleVisible</string>
  818. </property>
  819. <property name="checked">
  820. <bool>true</bool>
  821. </property>
  822. </widget>
  823. </item>
  824. </layout>
  825. </widget>
  826. </item>
  827. <item>
  828. <widget class="QGroupBox" name="groupBox_10">
  829. <property name="title">
  830. <string>轴刻度标签</string>
  831. </property>
  832. <layout class="QGridLayout" name="gridLayout_7">
  833. <item row="0" column="0">
  834. <widget class="QPushButton" name="pushButton">
  835. <property name="text">
  836. <string>标签格式</string>
  837. </property>
  838. </widget>
  839. </item>
  840. <item row="0" column="1">
  841. <widget class="QLineEdit" name="editAxisLabelFormat">
  842. <property name="text">
  843. <string>%.1f</string>
  844. </property>
  845. </widget>
  846. </item>
  847. <item row="1" column="0">
  848. <widget class="QPushButton" name="btnAxisLabelColor">
  849. <property name="text">
  850. <string>文字颜色</string>
  851. </property>
  852. </widget>
  853. </item>
  854. <item row="1" column="1">
  855. <widget class="QPushButton" name="btnAxisLabelFont">
  856. <property name="text">
  857. <string>设置字体</string>
  858. </property>
  859. </widget>
  860. </item>
  861. <item row="2" column="0" colspan="2">
  862. <widget class="QCheckBox" name="chkBoxLabelsVisible">
  863. <property name="text">
  864. <string>labelsVisible</string>
  865. </property>
  866. <property name="checked">
  867. <bool>true</bool>
  868. </property>
  869. </widget>
  870. </item>
  871. </layout>
  872. </widget>
  873. </item>
  874. <item>
  875. <widget class="QGroupBox" name="groupBox_11">
  876. <property name="title">
  877. <string>GridLine</string>
  878. </property>
  879. <layout class="QVBoxLayout" name="verticalLayout">
  880. <item>
  881. <widget class="QCheckBox" name="chkGridLineVisible">
  882. <property name="text">
  883. <string>isGridLineVisible</string>
  884. </property>
  885. <property name="checked">
  886. <bool>true</bool>
  887. </property>
  888. </widget>
  889. </item>
  890. <item>
  891. <widget class="QPushButton" name="btnGridLineColor">
  892. <property name="text">
  893. <string>gridLineColor</string>
  894. </property>
  895. </widget>
  896. </item>
  897. <item>
  898. <widget class="QPushButton" name="pushButton_10">
  899. <property name="text">
  900. <string>gridLinePen</string>
  901. </property>
  902. </widget>
  903. </item>
  904. </layout>
  905. </widget>
  906. </item>
  907. <item>
  908. <widget class="QGroupBox" name="groupBox_9">
  909. <property name="title">
  910. <string>Axis and Ticks</string>
  911. </property>
  912. <layout class="QGridLayout" name="gridLayout_5">
  913. <item row="3" column="0" colspan="2">
  914. <widget class="QPushButton" name="btnAxisLinePenColor">
  915. <property name="text">
  916. <string>linePenColor</string>
  917. </property>
  918. </widget>
  919. </item>
  920. <item row="0" column="1">
  921. <widget class="QSpinBox" name="spinTickCount">
  922. <property name="minimum">
  923. <number>1</number>
  924. </property>
  925. <property name="maximum">
  926. <number>1000</number>
  927. </property>
  928. <property name="value">
  929. <number>10</number>
  930. </property>
  931. </widget>
  932. </item>
  933. <item row="1" column="0" colspan="2">
  934. <widget class="QCheckBox" name="chkAxisLineVisible">
  935. <property name="text">
  936. <string>isLineVisible</string>
  937. </property>
  938. <property name="checked">
  939. <bool>true</bool>
  940. </property>
  941. </widget>
  942. </item>
  943. <item row="0" column="0">
  944. <widget class="QLabel" name="label_9">
  945. <property name="text">
  946. <string>Tick个数</string>
  947. </property>
  948. <property name="alignment">
  949. <set>Qt::AlignCenter</set>
  950. </property>
  951. </widget>
  952. </item>
  953. <item row="2" column="0" colspan="2">
  954. <widget class="QPushButton" name="btnAxisLinePen">
  955. <property name="text">
  956. <string>linePen</string>
  957. </property>
  958. </widget>
  959. </item>
  960. </layout>
  961. </widget>
  962. </item>
  963. <item>
  964. <widget class="QGroupBox" name="groupBox_5">
  965. <property name="title">
  966. <string>MinorTick</string>
  967. </property>
  968. <layout class="QGridLayout" name="gridLayout_8">
  969. <item row="0" column="0">
  970. <widget class="QLabel" name="label_10">
  971. <property name="text">
  972. <string>MinorTick个数</string>
  973. </property>
  974. <property name="alignment">
  975. <set>Qt::AlignCenter</set>
  976. </property>
  977. </widget>
  978. </item>
  979. <item row="0" column="1">
  980. <widget class="QSpinBox" name="spinMinorTickCount">
  981. <property name="value">
  982. <number>4</number>
  983. </property>
  984. </widget>
  985. </item>
  986. <item row="1" column="0" colspan="2">
  987. <widget class="QCheckBox" name="chkMinorTickVisible">
  988. <property name="text">
  989. <string>isMinorGridLineVisible</string>
  990. </property>
  991. </widget>
  992. </item>
  993. <item row="2" column="0" colspan="2">
  994. <widget class="QPushButton" name="btnMinorColor">
  995. <property name="text">
  996. <string>minorGridLineColor</string>
  997. </property>
  998. </widget>
  999. </item>
  1000. <item row="3" column="0" colspan="2">
  1001. <widget class="QPushButton" name="btnMinorPen">
  1002. <property name="text">
  1003. <string>minorGridLinePen</string>
  1004. </property>
  1005. </widget>
  1006. </item>
  1007. </layout>
  1008. </widget>
  1009. </item>
  1010. </layout>
  1011. </widget>
  1012. </widget>
  1013. </item>
  1014. </layout>
  1015. </widget>
  1016. </widget>
  1017. <widget class="QChartView" name="chartView"/>
  1018. </widget>
  1019. </item>
  1020. </layout>
  1021. </widget>
  1022. <widget class="QToolBar" name="mainToolBar">
  1023. <property name="toolButtonStyle">
  1024. <enum>Qt::ToolButtonTextBesideIcon</enum>
  1025. </property>
  1026. <attribute name="toolBarArea">
  1027. <enum>TopToolBarArea</enum>
  1028. </attribute>
  1029. <attribute name="toolBarBreak">
  1030. <bool>false</bool>
  1031. </attribute>
  1032. <addaction name="actDraw"/>
  1033. <addaction name="actZoomIn"/>
  1034. <addaction name="actZoomOut"/>
  1035. <addaction name="actZoomReset"/>
  1036. <addaction name="actQuit"/>
  1037. </widget>
  1038. <action name="actDraw">
  1039. <property name="icon">
  1040. <iconset resource="res.qrc">
  1041. <normaloff>:/images/images/828.bmp</normaloff>:/images/images/828.bmp</iconset>
  1042. </property>
  1043. <property name="text">
  1044. <string>刷新绘图</string>
  1045. </property>
  1046. <property name="toolTip">
  1047. <string>刷新绘图</string>
  1048. </property>
  1049. </action>
  1050. <action name="actQuit">
  1051. <property name="icon">
  1052. <iconset resource="res.qrc">
  1053. <normaloff>:/images/images/132.bmp</normaloff>:/images/images/132.bmp</iconset>
  1054. </property>
  1055. <property name="text">
  1056. <string>退出</string>
  1057. </property>
  1058. <property name="toolTip">
  1059. <string>退出</string>
  1060. </property>
  1061. </action>
  1062. <action name="actZoomIn">
  1063. <property name="icon">
  1064. <iconset resource="res.qrc">
  1065. <normaloff>:/images/images/418.bmp</normaloff>:/images/images/418.bmp</iconset>
  1066. </property>
  1067. <property name="text">
  1068. <string>放大</string>
  1069. </property>
  1070. <property name="toolTip">
  1071. <string>放大</string>
  1072. </property>
  1073. </action>
  1074. <action name="actZoomOut">
  1075. <property name="icon">
  1076. <iconset resource="res.qrc">
  1077. <normaloff>:/images/images/416.bmp</normaloff>:/images/images/416.bmp</iconset>
  1078. </property>
  1079. <property name="text">
  1080. <string>缩小</string>
  1081. </property>
  1082. <property name="toolTip">
  1083. <string>缩小</string>
  1084. </property>
  1085. </action>
  1086. <action name="actZoomReset">
  1087. <property name="icon">
  1088. <iconset resource="res.qrc">
  1089. <normaloff>:/images/images/414.bmp</normaloff>:/images/images/414.bmp</iconset>
  1090. </property>
  1091. <property name="text">
  1092. <string>原始大小</string>
  1093. </property>
  1094. <property name="toolTip">
  1095. <string>还原为原始大小</string>
  1096. </property>
  1097. </action>
  1098. </widget>
  1099. <layoutdefault spacing="6" margin="11"/>
  1100. <customwidgets>
  1101. <customwidget>
  1102. <class>QChartView</class>
  1103. <extends>QGraphicsView</extends>
  1104. <header location="global">qchartview.h</header>
  1105. </customwidget>
  1106. </customwidgets>
  1107. <resources>
  1108. <include location="res.qrc"/>
  1109. </resources>
  1110. <connections>
  1111. <connection>
  1112. <sender>actQuit</sender>
  1113. <signal>triggered()</signal>
  1114. <receiver>MainWindow</receiver>
  1115. <slot>close()</slot>
  1116. <hints>
  1117. <hint type="sourcelabel">
  1118. <x>-1</x>
  1119. <y>-1</y>
  1120. </hint>
  1121. <hint type="destinationlabel">
  1122. <x>389</x>
  1123. <y>242</y>
  1124. </hint>
  1125. </hints>
  1126. </connection>
  1127. </connections>
  1128. </ui>