| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453 |
- /*
- This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
- It is supposed to be strictly declarative and only uses a subset of QML. If you edit
- this file manually, you might introduce QML code that is not supported by Qt Design Studio.
- Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
- */
- import QtQuick
- import QtQuick.Window
- import QtQuick.Controls
- import QtQuick.Layouts
- //import IOT_UI
- Rectangle {
- id: mainScreen1
- width: Constants.width
- height: Constants.height
- color: "#ffffff"
- border.color: "#ffffff"
- property alias shortcut_Btn19: shortcut_Btn19
- property alias shortcut_Btn18: shortcut_Btn18
- property alias shortcut_Btn17: shortcut_Btn17
- property alias shortcut_Btn16: shortcut_Btn16
- property alias shortcut_Btn15: shortcut_Btn15
- property alias shortcut_Btn14: shortcut_Btn14
- property alias shortcut_Btn13: shortcut_Btn13
- property alias shortcut_Btn12: shortcut_Btn12
- property alias shortcut_Btn11: shortcut_Btn11
- property alias shortcut_Btn10: shortcut_Btn10
- property alias shortcut_Btn9: shortcut_Btn9
- property alias shortcut_Btn8: shortcut_Btn8
- property alias shortcut_Btn7: shortcut_Btn7
- property alias shortcut_Btn6: shortcut_Btn6
- property alias shortcut_Btn5: shortcut_Btn5
- property alias shortcut_Btn4: shortcut_Btn4
- property alias shortcut_Btn3: shortcut_Btn3
- property alias shortcut_Btn2: shortcut_Btn2
- property alias shortcut_Btn1: shortcut_Btn1
- property alias shortcut_Texti: shortcut_Texti
- property alias shortcut_Texth: shortcut_Texth
- property alias shortcut_Textg: shortcut_Textg
- property alias shortcut_Textf: shortcut_Textf
- property alias shortcut_Texte: shortcut_Texte
- property alias shortcut_Textd: shortcut_Textd
- property alias shortcut_Textc: shortcut_Textc
- property alias shortcut_Textb: shortcut_Textb
- property alias shortcut_Texta: shortcut_Texta
- property alias shortcut_AltText5: shortcut_AltText5
- property alias shortcut_AltText4: shortcut_AltText4
- property alias shortcut_AltText3: shortcut_AltText3
- property alias shortcut_AltText2: shortcut_AltText2
- property alias shortcut_AltText1: shortcut_AltText1
- property alias shortcut_CtrlText5: shortcut_CtrlText5
- property alias shortcut_CtrlText4: shortcut_CtrlText4
- property alias shortcut_CtrlText3: shortcut_CtrlText3
- property alias shortcut_CtrlText2: shortcut_CtrlText2
- property alias shortcut_CtrlText1: shortcut_CtrlText1
- property alias shortcut_titleTextMouse: shortcut_titleTextMouse
- property alias shortcut_titleText: shortcut_titleText
- property alias ip_nameCombo: ip_nameCombo
- property alias txByteText: txByteText
- property alias rxByteText: rxByteText
- property alias txClearBtn: txClearBtn
- property alias rxClearBtn: rxClearBtn
- property alias ip_switch: ip_switch
- property alias subButton: subButton
- property alias subField: subField
- property alias ip_otherPortText: ip_otherPortText
- property alias ip_otherAddrText: ip_otherAddrText
- property alias ip_myPortText: ip_myPortText
- property alias ip_myAddrText: ip_myAddrText
- property alias serial_stopBitCombo: serial_stopBitCombo
- property alias serial_dataBitCombo: serial_dataBitCombo
- property alias serial_checkBitCombo: serial_checkBitCombo
- property alias autoSendTimePage: autoSendTimePage
- property alias hoverDescriptionText: hoverDescriptionText
- property alias hoverDescriptionPage: hoverDescriptionPage
- property alias myMouseArea: myMouseArea
- property alias slider_color: slider_color
- property alias serial_boudCombo: serial_boudCombo
- property alias serial_descriptionLab: serial_descriptionLab
- property alias serial_ip_page: serial_ip_page
- property alias txSuffixCombo: txSuffixCombo
- property alias ip_leftSidePage: ip_leftSidePage
- property alias autoSendTime: autoSendTime
- property alias recDataEdit: recDataEdit
- property alias recDataMouse: recDataMouse
- property alias vbar1: vbar1
- property alias recDataPage: recDataPage
- property alias sendDataEdit: sendDataEdit
- property alias sendDataMouse: sendDataMouse
- property alias vbar2: vbar2
- property alias sendDataPage: sendDataPage
- property alias txAutoSend_btn: txAutoSend_btn
- property alias txSend_btn: txSend_btn
- property alias txClear_btn: txClear_btn
- property alias txCode_btn: txCode_btn
- property alias rxClear_btn: rxClear_btn
- property alias saveFile_btn: saveFile_btn
- property alias displayDate_btn: displayDate_btn
- property alias serial_leftSidePage: serial_leftSidePage
- property alias serial_nameCombo: serial_nameCombo
- property alias rxCode_btn: rxCode_btn
- property alias txEN_btn: txEN_btn
- property alias rxEN_btn: rxEN_btn
- property alias serial_switch: serial_switch
- property alias data_chineseByteTextinput: data_chineseByteTextinput
- property alias data_englishByteTextinput: data_englishByteTextinput
- property alias data_codeCombo: data_codeCombo
- property alias data_changeBtn: data_changeBtn
- property alias data_fine2Btn: data_fine2Btn
- property alias data_fine1Btn: data_fine1Btn
- property alias data_deleta2Btn: data_deleta2Btn
- property alias data_target2TitleMouse: data_target2TitleMouse
- property alias data_target1TitleMouse: data_target1TitleMouse
- property alias data_deleta1Btn: data_deleta1Btn
- property alias data_vbar3: data_vbar3
- property alias data_vbar2: data_vbar2
- property alias data_vbar1: data_vbar1
- property alias data_target2Edit: data_target2Edit
- property alias data_target1Edit: data_target1Edit
- property alias data_target2Mouse: data_target2Mouse
- property alias data_target1Mouse: data_target1Mouse
- property alias data_originEdit: data_originEdit
- property alias data_originMouse: data_originMouse
- property alias data_originTitleText: data_originTitleText
- property alias data_originTitleMouse: data_originTitleMouse
- property alias data_page: data_page
- property alias test_page: test_page
- property alias tabBar: tabBar
- // 连接C++的信号
- Connections {
- target: mySerial
- onReadSignal: function (recByte) {
- mainScreen.recDataDisplay(recByte)
- }
- onSendSuccess: function (sendByte) {
- mainScreen.sendDataDisplay(sendByte)
- }
- }
- Connections {
- target: myNetwork
- onTcpServer_readSuccess: function (recByte) {
- mainScreen.recDataDisplay(recByte)
- }
- onTcpServer_sendSuccess: function (sendByte) {
- mainScreen.sendDataDisplay(sendByte)
- }
- onTcpClient_readSuccess: function (recByte) {
- mainScreen.recDataDisplay(recByte)
- }
- onTcpClient_sendSuccess: function (sendByte) {
- mainScreen.sendDataDisplay(sendByte)
- }
- onUdp_readSuccess: function (recByte) {
- mainScreen.recDataDisplay(recByte)
- }
- onUdp_sendSuccess: function (sendByte) {
- mainScreen.sendDataDisplay(sendByte)
- }
- }
- Connections {
- target: myMqtt
- onMqttclient_readSuccess: function (recByte) {
- mainScreen.recDataDisplay(recByte)
- }
- }
- TabBar {
- id: tabBar
- height: 18
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- font.pixelSize: 16
- contentWidth: 320
- contentHeight: 48
- topPadding: -15
- anchors.rightMargin: 0
- anchors.leftMargin: 0
- anchors.topMargin: 0
- font.weight: Font.DemiBold
- TabButton {
- id: serialTool
- y: 9
- height: 40
- text: qsTr("串口调试")
- anchors.left: parent.left
- icon.source: "../../Res/Icon/button-background-checked.9.png"
- icon.color: "#97e91e"
- anchors.leftMargin: 0
- }
- TabButton {
- id: ipTool
- y: 9
- height: 40
- text: qsTr("网络调试")
- anchors.left: serialTool.right
- icon.color: "#ffffff"
- anchors.leftMargin: 0
- }
- TabButton {
- id: dataTool
- y: 9
- height: 40
- text: qsTr("数据操作")
- anchors.left: ipTool.right
- anchors.leftMargin: 0
- }
- TabButton {
- id: testTool
- y: 9
- height: 40
- text: qsTr("图像预览")
- anchors.left: dataTool.right
- anchors.leftMargin: 0
- }
- }
- Rectangle {
- id: data_page
- visible: false
- color: "#40000000"
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: tabBar.bottom
- anchors.bottom: parent.bottom
- anchors.topMargin: 3
- Rectangle {
- id: data_originTitlePage
- height: 26
- visible: true
- color: "#00000000"
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.rightMargin: 20
- anchors.leftMargin: 20
- Text {
- id: data_originTitleText
- width: 200
- visible: true
- color: "#000000"
- text: qsTr("源数据")
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- font.pixelSize: 18
- verticalAlignment: Text.AlignVCenter
- anchors.bottomMargin: 0
- anchors.leftMargin: 0
- anchors.topMargin: 0
- MouseArea {
- id: data_originTitleMouse
- visible: true
- anchors.fill: parent
- }
- }
- Text {
- id: data_englishByteText
- x: 630
- text: qsTr("英文字节数")
- anchors.right: data_englishByteTextinput.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- font.pixelSize: 16
- verticalAlignment: Text.AlignVCenter
- anchors.rightMargin: 0
- anchors.bottomMargin: 0
- anchors.topMargin: 0
- }
- TextInput {
- id: data_englishByteTextinput
- width: 120
- text: qsTr("0")
- anchors.right: data_chineseByteText.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignRight
- verticalAlignment: Text.AlignVCenter
- anchors.rightMargin: 30
- clip: true
- anchors.bottomMargin: 0
- anchors.topMargin: 0
- }
- Text {
- id: data_chineseByteText
- x: 840
- text: qsTr("中文字节数")
- anchors.right: data_chineseByteTextinput.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- font.pixelSize: 16
- verticalAlignment: Text.AlignVCenter
- anchors.rightMargin: 0
- anchors.bottomMargin: 0
- anchors.topMargin: 0
- }
- TextInput {
- id: data_chineseByteTextinput
- x: 869
- width: 120
- height: 20
- text: qsTr("0")
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignRight
- verticalAlignment: Text.AlignVCenter
- clip: true
- anchors.rightMargin: 0
- anchors.bottomMargin: 0
- anchors.topMargin: 0
- }
- }
- Rectangle {
- id: data_originPage
- height: parent.height * 0.65
- color: "#e0000000"
- radius: 10
- border.width: 0
- anchors.left: data_originTitlePage.left
- anchors.right: data_originTitlePage.right
- anchors.top: data_originTitlePage.bottom
- anchors.rightMargin: 0
- anchors.leftMargin: 0
- anchors.topMargin: 0
- ScrollBar {
- id: data_vbar1
- hoverEnabled: true
- active: hovered || pressed
- orientation: Qt.Vertical
- size: data_originPage.height / data_originEdit.height
- width: 10
- anchors.top: parent.top
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- anchors.rightMargin: -10
- }
- MouseArea {
- id: data_originMouse
- anchors.fill: parent
- clip: true
- anchors.rightMargin: 0
- TextEdit {
- id: data_originEdit
- width: parent.width
- height: contentHeight
- y: -data_vbar1.position * data_originEdit.height
- color: "#00ff00"
- text: qsTr("")
- font.pixelSize: 16
- wrapMode: Text.Wrap
- textFormat: Text.AutoText
- selectionColor: "#ffffff"
- selectedTextColor: "#000000"
- selectByMouse: true
- textMargin: 1
- }
- }
- }
- Rectangle {
- id: data_target1TitlePage
- width: (mainScreen1.width - 60) / 2
- height: 26
- color: "#00ffffff"
- anchors.left: data_originTitlePage.left
- anchors.top: data_originPage.bottom
- anchors.leftMargin: 0
- anchors.topMargin: 0
- Text {
- id: data_target1TitleText
- width: 200
- text: qsTr("目标数据一")
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- font.pixelSize: 18
- verticalAlignment: Text.AlignVCenter
- MouseArea {
- id: data_target1TitleMouse
- anchors.fill: parent
- anchors.rightMargin: 0
- anchors.bottomMargin: 0
- }
- }
- }
- Rectangle {
- id: data_target1Page
- width: (mainScreen1.width - 100) / 2 //宽度
- color: "#e0000000"
- radius: 10
- border.width: 0
- anchors.left: data_originTitlePage.left
- anchors.top: data_target1TitlePage.bottom
- anchors.bottom: data_btnPage.top
- anchors.bottomMargin: 0
- anchors.leftMargin: 0
- anchors.topMargin: 0
- ScrollBar {
- id: data_vbar2
- hoverEnabled: true
- active: hovered || pressed
- orientation: Qt.Vertical
- size: data_target1Page.height / data_target1Edit.height
- width: 10
- anchors.top: parent.top
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- anchors.rightMargin: -10
- }
- MouseArea {
- id: data_target1Mouse
- anchors.fill: parent
- clip: true
- anchors.rightMargin: 0
- TextEdit {
- id: data_target1Edit
- width: parent.width
- height: contentHeight
- y: -data_vbar2.position * data_target1Edit.height
- color: "#00ff00"
- text: qsTr("")
- font.pixelSize: 16
- wrapMode: Text.Wrap
- selectionColor: "#ffffff"
- selectedTextColor: "#000000"
- selectByMouse: true
- textMargin: 1
- }
- }
- }
- Rectangle {
- id: data_target2TitlePage
- x: 757
- width: (mainScreen1.width - 60) / 2
- height: 26
- color: "#00ffffff"
- anchors.right: data_originTitlePage.right
- anchors.top: data_originPage.bottom
- anchors.rightMargin: 0
- anchors.topMargin: 0
- Text {
- id: data_target2TitleText
- width: 200
- text: qsTr("目标数据二")
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- font.pixelSize: 18
- verticalAlignment: Text.AlignVCenter
- MouseArea {
- id: data_target2TitleMouse
- anchors.fill: parent
- }
- }
- }
- Rectangle {
- id: data_target2Page
- x: 640
- width: (mainScreen1.width - 60) / 2
- color: "#e0000000"
- radius: 10
- border.width: 0
- anchors.right: data_originTitlePage.right
- anchors.top: data_target2TitlePage.bottom
- anchors.bottom: data_btnPage.top
- anchors.bottomMargin: 0
- anchors.rightMargin: 0
- anchors.topMargin: 0
- ScrollBar {
- id: data_vbar3
- hoverEnabled: true
- active: hovered || pressed
- orientation: Qt.Vertical
- size: data_target2Page.height / data_target2Edit.height
- width: 10
- anchors.top: parent.top
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- anchors.rightMargin: -10
- }
- MouseArea {
- id: data_target2Mouse
- anchors.fill: parent
- clip: true
- anchors.rightMargin: 0
- TextEdit {
- id: data_target2Edit
- width: parent.width
- height: contentHeight
- y: -data_vbar3.position * data_target2Edit.height
- color: "#00ff00"
- text: qsTr("")
- font.pixelSize: 16
- wrapMode: Text.Wrap
- selectByMouse: true
- selectedTextColor: "#000000"
- selectionColor: "#ffffff"
- textMargin: 1
- }
- }
- }
- Rectangle {
- id: data_btnPage
- height: 46
- color: "#00ffffff"
- anchors.left: data_originTitlePage.left
- anchors.right: data_originTitlePage.right
- anchors.bottom: parent.bottom
- anchors.rightMargin: 0
- anchors.leftMargin: 0
- anchors.bottomMargin: 0
- Button {
- id: data_deleta1Btn
- width: 90
- height: 45
- text: qsTr("指定替换")
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 16
- anchors.leftMargin: 0
- }
- Button {
- id: data_deleta2Btn
- width: 90
- height: 45
- text: qsTr("范围替换")
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 16
- anchors.leftMargin: (data_target1Page.width * 0.5) - (data_deleta2Btn.width * 0.5)
- }
- Button {
- id: data_fine1Btn
- width: 90
- height: 45
- text: qsTr("指定查找")
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 16
- anchors.leftMargin: data_target1Page.width - data_fine1Btn.width
- }
- Button {
- id: data_fine2Btn
- width: 90
- height: 45
- text: qsTr("范围查找")
- anchors.verticalCenter: parent.verticalCenter
- anchors.right: parent.right
- font.pixelSize: 16
- anchors.rightMargin: data_target2Page.width - data_fine2Btn.width
- }
- Button {
- id: data_changeBtn
- width: 90
- height: 45
- text: qsTr("数据转码")
- anchors.verticalCenter: parent.verticalCenter
- anchors.right: parent.right
- font.pixelSize: 16
- anchors.rightMargin: (data_target2Page.width * 0.5) - (data_changeBtn.width * 0.5)
- }
- ComboBox {
- id: data_codeCombo
- width: 90
- height: 45
- anchors.verticalCenter: parent.verticalCenter
- anchors.right: parent.right
- font.pixelSize: 16
- anchors.rightMargin: 0
- model: ["UTF8", "HEX"]
- }
- }
- }
- //不可见项目,通常和一个课件项目配合使用来为其提供鼠标处理。鼠标处理的逻辑可以包含在一个MouseArea中
- MouseArea {
- id: myMouseArea
- x: 0
- y: 40
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: tabBar.bottom
- anchors.bottom: parent.bottom
- hoverEnabled: true
- propagateComposedEvents: false
- anchors.topMargin: 3
- Rectangle {
- id: serial_ip_page
- opacity: 1 //属性指定了一个元素的不透明度,0,完全透明
- color: "#20000000"
- border.color: "#11000000"
- border.width: 1
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.topMargin: 0
- Rectangle {
- id: serial_leftSidePage
- width: 180
- color: "#00000000"
- radius: 10
- border.color: "#000000"
- border.width: 0
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.topMargin: 0
- anchors.bottomMargin: 0
- anchors.leftMargin: 0
- Label {
- id: serial_nameLab
- width: 60
- height: 40
- text: qsTr("端口号")
- anchors.left: parent.left
- anchors.top: parent.top
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.topMargin: 8
- anchors.leftMargin: 1
- }
- ComboBox {
- objectName: "serial_name"
- id: serial_nameCombo
- width: 110
- height: 40
- anchors.left: serial_nameLab.right
- anchors.top: parent.top
- font.pixelSize: 16
- anchors.topMargin: 8
- wheelEnabled: true
- anchors.leftMargin: 3
- }
- Label {
- id: serial_boudLab
- width: 60
- height: 40
- text: qsTr("波特率")
- anchors.left: parent.left
- anchors.top: serial_descriptionLab.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.topMargin: 3
- anchors.leftMargin: 0
- }
- ComboBox {
- id: serial_boudCombo
- width: 110
- height: 40
- anchors.left: serial_boudLab.right
- anchors.top: serial_descriptionLab.bottom
- font.pixelSize: 16
- anchors.topMargin: 3
- wheelEnabled: true
- flat: true
- currentIndex: 6
- editable: true
- anchors.leftMargin: 3
- objectName: "serial_boud"
- model: ["4800", "9600", "19200", "38400", "57600", "74800", "115200"]
- }
- Label {
- id: serial_checkBitLab
- width: 60
- height: 40
- text: qsTr("校验位")
- anchors.left: serial_boudCombo.right
- anchors.bottom: serial_boudLab.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.topMargin: 0
- anchors.leftMargin: 0
- }
- ComboBox {
- id: serial_checkBitCombo
- width: 95
- height: 40
- anchors.left: serial_checkBitLab.right
- anchors.bottom: serial_boudCombo.bottom
- font.pixelSize: 16
- anchors.topMargin: 0
- wheelEnabled: true
- anchors.leftMargin: 18
- objectName: "serial_checkBit"
- model: ["None", "Even", "Odd"]
- }
- Label {
- id: serial_dataBitLab
- width: 75
- height: 40
- color: "#dd000000"
- text: qsTr("数据位数")
- anchors.left: serial_checkBitCombo.right
- anchors.bottom: serial_boudLab.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- styleColor: "#000000"
- anchors.topMargin: 0
- anchors.leftMargin: 0
- }
- ComboBox {
- id: serial_dataBitCombo
- width: 73
- height: 40
- anchors.left: serial_dataBitLab.right
- anchors.bottom: serial_boudCombo.bottom
- font.pixelSize: 16
- anchors.topMargin: 0
- wheelEnabled: true
- currentIndex: 3
- anchors.leftMargin: 25
- objectName: "serial_dataBit"
- model: ["5", "6", "7", "8"]
- }
- Label {
- id: serial_stopBitLab
- width: 75
- height: 40
- text: qsTr("停止位数")
- anchors.left: serial_dataBitCombo.right
- anchors.bottom: serial_dataBitLab.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.topMargin: 0
- anchors.leftMargin: 0
- }
- ComboBox {
- id: serial_stopBitCombo
- width: 73
- height: 40
- anchors.left: serial_stopBitLab.right
- anchors.bottom: serial_boudCombo.bottom
- font.pixelSize: 16
- anchors.topMargin: 0
- wheelEnabled: true
- anchors.leftMargin: 25
- objectName: "serial_stopBit"
- model: ["1", "1.5", "2"]
- }
- Label {
- objectName: "serial_description"
- id: serial_descriptionLab
- height: 20
- anchors.left: parent.left
- anchors.right: serial_switch.right
- anchors.top: serial_nameLab.bottom
- font.pixelSize: 14
- horizontalAlignment: Text.AlignRight
- verticalAlignment: Text.AlignVCenter
- clip: true
- anchors.rightMargin: 6
- anchors.topMargin: 1
- anchors.leftMargin: 6
- }
- SwitchDelegate {
- id: serial_switch
- height: 36
- text: qsTr("串口开关")
- anchors.left: serial_nameCombo.right
- //anchors.right: parent.right
- anchors.top: parent.top
- leftPadding: 6
- scale: 1
- bottomPadding: 8
- topPadding: 8
- anchors.topMargin: 10
- padding: 4
- anchors.leftMargin: 0
- focusPolicy: Qt.NoFocus
- objectName: "serial_switch"
- font.pixelSize: 16
- anchors.rightMargin: 0
- rightPadding: 18
- }
- }
- Rectangle {
- id: sendDataPage
- height: 135
- color: "#e0000000"
- radius: 5
- border.color: "#000000"
- border.width: 0
- anchors.left: parent.left
- anchors.right: txConfig.left
- anchors.bottom: parent.bottom
- anchors.rightMargin: 10
- clip: true
- anchors.bottomMargin: 1
- anchors.leftMargin: 10
- focus: true
- ScrollBar {
- id: vbar2
- y: 0
- width: 10
- anchors.left: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.leftMargin: 0
- orientation: Qt.Vertical
- hoverEnabled: true
- size: sendDataPage.height / sendDataEdit.height
- }
- MouseArea {
- id: sendDataMouse
- anchors.bottom: parent.bottom
- anchors.fill: parent
- anchors.bottomMargin: 0
- anchors.rightMargin: 0
- clip: true
- TextEdit {
- id: sendDataEdit
- y: -vbar2.position * sendDataEdit.height
- width: parent.width
- height: contentHeight
- color: "#00ff00"
- text: qsTr("发送区")
- font.pixelSize: 16
- wrapMode: Text.Wrap
- textFormat: Text.PlainText
- selectedTextColor: "#000000"
- selectByKeyboard: true
- textMargin: 1
- objectName: "sendData"
- selectByMouse: true
- selectionColor: "#ffffff"
- }
- }
- }
- //数据接收区域
- Rectangle {
- id: recDataPage
- width: 800
- height: 430
- color: "#e0000000"
- radius: 5 //圆角半径
- border.width: 1
- anchors.left: parent.left //左边
- //anchors.top: sub_row.bottom
- anchors.bottom: tx_rxBytePage.top
- anchors.bottomMargin: 10
- clip: true
- anchors.topMargin: 1
- anchors.leftMargin: 10
- focus: true // 如果没有焦点项,键事件就不能被处理,它就不能在一个屏幕中做任何事情——应用程序会挂起!!
- //滚动条控件
- ScrollBar {
- id: vbar1
- width: 10
- anchors.left: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.leftMargin: 0
- active: hovered || pressed
- size: recDataPage.height / recDataEdit.height
- orientation: Qt.Vertical
- hoverEnabled: true
- }
- //动画图像控件
- AnimatedImage {
- id: animatedImage
- opacity: 0.3 //透明度
- visible: true
- anchors.left: parent.left //左边
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- source: "../img/001.gif"
- anchors.rightMargin: 0
- }
- //是一个不可见项,通常与可见项结合使用,以便为该项提供鼠标处理。通过有效地充当代理,鼠标处理的逻辑可以包含在 MouseArea 项中
- MouseArea {
- id: recDataMouse
- visible: true
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 0
- anchors.rightMargin: 0
- clip: true
- TextEdit {
- id: recDataEdit
- y: -vbar1.position * recDataEdit.height
- width: parent.width
- height: contentHeight
- color: "#00ff00"
- text: qsTr("123456")
- font.pixelSize: 16
- verticalAlignment: Text.AlignTop
- wrapMode: Text.Wrap
- textFormat: Text.AutoText
- selectedTextColor: "#000000"
- readOnly: true //只读
- selectByKeyboard: true
- textMargin: 1 //字符间距
- objectName: "recData"
- selectByMouse: true //鼠标可选
- selectionColor: "#ffffff" //选中后颜色
- }
- }
- }
- Rectangle {
- id: rxConfig
- width: 380
- height: 40
- color: "#00ffffff"
- radius: 10
- border.width: 0
- anchors.left: serial_leftSidePage.right
- anchors.bottom: sendDataPage.top
- anchors.bottomMargin: 0
- Button {
- id: rxEN_btn
- width: 40
- height: 40
- text: "Rx"
- anchors.left: rxCode_btn.right
- anchors.top: parent.top
- font.pixelSize: 14
- anchors.topMargin: 0
- highlighted: true
- anchors.leftMargin: 10
- objectName: "rxEN"
- }
- Button {
- id: txEN_btn
- x: -47
- width: 40
- height: 40
- text: qsTr("Tx")
- anchors.left: rxEN_btn.right
- anchors.top: parent.top
- font.pixelSize: 14
- anchors.topMargin: 0
- anchors.leftMargin: 10
- objectName: "txEN"
- }
- Button {
- id: rxCode_btn
- width: 60
- height: 40
- text: qsTr("ASCII")
- anchors.left: parent.left
- anchors.top: parent.top
- font.pixelSize: 14
- anchors.topMargin: 0
- highlighted: true
- anchors.leftMargin: 4
- objectName: "rxCode"
- }
- Button {
- id: rxClear_btn
- width: 60
- height: 40
- text: qsTr("clear")
- anchors.left: saveFile_btn.right
- anchors.top: parent.top
- font.pixelSize: 14
- anchors.topMargin: 0
- anchors.leftMargin: 10
- }
- Button {
- id: displayDate_btn
- width: 60
- height: 40
- text: qsTr("date")
- anchors.left: txEN_btn.right
- anchors.top: parent.top
- font.pixelSize: 14
- anchors.topMargin: 0
- anchors.leftMargin: 10
- objectName: "displayDate"
- }
- Button {
- id: saveFile_btn
- width: 60
- height: 40
- text: qsTr("file")
- anchors.left: displayDate_btn.right
- anchors.top: parent.top
- font.pixelSize: 14
- anchors.topMargin: 0
- anchors.leftMargin: 10
- objectName: "saveFile"
- }
- anchors.leftMargin: 0
- }
- Rectangle {
- id: txConfig
- width: 140
- height: 176
- color: "#00ffffff"
- radius: 10
- anchors.right: recDataPage.right
- anchors.bottom: parent.bottom
- anchors.rightMargin: 0
- anchors.bottomMargin: 0
- Button {
- id: txCode_btn
- width: 60
- height: 40
- text: qsTr("ASCII")
- anchors.left: parent.left
- anchors.top: slider_color.bottom
- font.pixelSize: 14
- anchors.topMargin: 0
- highlighted: true
- anchors.leftMargin: 6
- objectName: "txCode"
- }
- Button {
- id: txClear_btn
- x: 0
- width: 60
- height: 40
- text: qsTr("clear")
- anchors.right: parent.right
- anchors.top: slider_color.bottom
- font.pixelSize: 14
- anchors.topMargin: 0
- anchors.rightMargin: 6
- }
- Button {
- id: txSend_btn
- width: 60
- height: 40
- text: qsTr("send")
- anchors.left: parent.left
- anchors.top: txCode_btn.bottom
- font.pixelSize: 14
- anchors.topMargin: 0
- anchors.leftMargin: 6
- }
- Button {
- id: txAutoSend_btn
- x: 53
- width: 60
- height: 40
- text: qsTr("AUTO")
- anchors.right: parent.right
- anchors.top: txClear_btn.bottom
- font.pixelSize: 14
- anchors.topMargin: 0
- anchors.rightMargin: 6
- }
- Rectangle {
- id: autoSendTimePage
- y: 120
- height: 36
- color: "#00ffffff"
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: txSuffixCombo.top
- anchors.rightMargin: 6
- anchors.bottomMargin: 0
- anchors.leftMargin: 6
- TextArea {
- id: autoSendTime
- anchors.fill: parent
- font.pixelSize: 16
- bottomPadding: 4
- topPadding: 8
- placeholderText: "ms"
- selectByMouse: true
- selectedTextColor: "white"
- selectionColor: "black"
- }
- }
- ComboBox {
- id: txSuffixCombo
- y: 0
- height: 40
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- font.pixelSize: 16
- anchors.rightMargin: 6
- anchors.bottomMargin: 2
- anchors.leftMargin: 6
- objectName: "txSuffix"
- model: ["None", "\\r", "\\n", "\\r\\n", "\\n\\r"]
- }
- Slider {
- id: slider_color
- width: 126
- height: 20
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.topMargin: 2
- anchors.rightMargin: 0
- stepSize: 1
- value: 0
- anchors.leftMargin: 0
- to: 125
- from: 0
- }
- }
- Rectangle {
- id: shortcut_rightSidePage
- color: "#00ffffff"
- radius: 10
- anchors.left: recDataPage.right
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.topMargin: 0
- anchors.rightMargin: 0
- anchors.bottomMargin: 0
- anchors.leftMargin: 10
- Label {
- id: shortcut_titleText
- text: qsTr("发送区快捷方式")
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- font.pixelSize: 14
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.rightMargin: 0
- anchors.leftMargin: 0
- anchors.topMargin: 4
- font.italic: true
- font.bold: false
- MouseArea {
- id: shortcut_titleTextMouse
- anchors.fill: parent
- hoverEnabled: true
- }
- }
- Rectangle {
- id: shortcut_contentPage
- color: "#00ffffff"
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: shortcut_titleText.bottom
- anchors.bottom: parent.bottom
- anchors.rightMargin: 0
- anchors.bottomMargin: 0
- anchors.leftMargin: 0
- anchors.topMargin: 0
- Label {
- id: shortcut_CtrlLab1
- width: 14
- height: 24
- visible: true
- text: qsTr("1.")
- anchors.verticalCenter: shortcut_Btn1.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn1
- width: 50
- height: 30
- text: qsTr("SEND")
- anchors.left: shortcut_CtrlLab1.right
- anchors.top: parent.top
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- spacing: 6
- }
- TextField {
- objectName: "shortcut_CtrlText1"
- id: shortcut_CtrlText1
- height: 24
- anchors.verticalCenter: shortcut_Btn1.verticalCenter
- anchors.left: shortcut_Btn1.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- font.preferShaping: true
- font.kerning: true
- placeholderText: qsTr("CTRL+1快捷发送此内容")
- bottomPadding: 0
- topPadding: 0
- selectByMouse: true
- selectedTextColor: "white"
- selectionColor: "black"
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- }
- Label {
- id: shortcut_CtrlLab2
- width: 14
- height: 24
- visible: true
- text: qsTr("2.")
- anchors.verticalCenter: shortcut_Btn2.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn2
- width: 50
- height: 30
- text: qsTr("SEND")
- anchors.left: shortcut_CtrlLab2.right
- anchors.top: shortcut_Btn1.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_CtrlText2"
- id: shortcut_CtrlText2
- height: 24
- anchors.verticalCenter: shortcut_Btn2.verticalCenter
- anchors.left: shortcut_Btn2.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("CTRL+2快捷发送此内容")
- }
- Label {
- id: shortcut_CtrlLab3
- width: 14
- height: 24
- visible: true
- text: qsTr("3.")
- anchors.verticalCenter: shortcut_Btn3.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn3
- width: 50
- height: 30
- text: qsTr("SEND")
- anchors.left: shortcut_CtrlLab3.right
- anchors.top: shortcut_Btn2.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_CtrlText3"
- id: shortcut_CtrlText3
- y: 117
- height: 24
- anchors.verticalCenter: shortcut_Btn3.verticalCenter
- anchors.left: shortcut_Btn3.right
- font.pixelSize: 14
- anchors.verticalCenterOffset: 0
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("CTRL+3快捷发送此内容")
- }
- Label {
- id: shortcut_CtrlLab4
- width: 14
- height: 24
- visible: true
- text: qsTr("4.")
- anchors.verticalCenter: shortcut_Btn4.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn4
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_CtrlLab4.right
- anchors.top: shortcut_Btn3.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_CtrlText4"
- id: shortcut_CtrlText4
- height: 24
- anchors.verticalCenter: shortcut_Btn4.verticalCenter
- anchors.left: shortcut_Btn4.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("CTRL+4快捷发送此内容")
- }
- Label {
- id: shortcut_CtrlLab5
- width: 14
- height: 24
- visible: true
- text: qsTr("5.")
- anchors.verticalCenter: shortcut_Btn5.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn5
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_CtrlLab5.right
- anchors.top: shortcut_Btn4.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_CtrlText5"
- id: shortcut_CtrlText5
- height: 24
- anchors.verticalCenter: shortcut_Btn5.verticalCenter
- anchors.left: shortcut_Btn5.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("CTRL+5快捷发送此内容")
- }
- Label {
- id: shortcut_AltLab1
- width: 14
- height: 24
- visible: true
- text: qsTr("1.")
- anchors.verticalCenter: shortcut_Btn6.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn6
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_AltLab1.right
- anchors.top: shortcut_Btn5.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_AltText1"
- id: shortcut_AltText1
- height: 24
- anchors.verticalCenter: shortcut_Btn6.verticalCenter
- anchors.left: shortcut_Btn6.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("ALT+1快捷发送此内容")
- }
- Label {
- id: shortcut_AltLab2
- width: 14
- height: 24
- visible: true
- text: qsTr("2.")
- anchors.verticalCenter: shortcut_Btn7.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn7
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_AltLab2.right
- anchors.top: shortcut_Btn6.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_AltText2"
- id: shortcut_AltText2
- height: 24
- anchors.verticalCenter: shortcut_Btn7.verticalCenter
- anchors.left: shortcut_Btn7.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("ALT+2快捷发送此内容")
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- }
- Label {
- id: shortcut_AltLab3
- width: 14
- height: 24
- visible: true
- text: qsTr("3.")
- anchors.verticalCenter: shortcut_Btn8.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn8
- width: 50
- height: 28
- text: qsTr("SEND")
- font.pixelSize: 12
- anchors.left: shortcut_AltLab3.right
- anchors.top: shortcut_Btn7.bottom
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_AltText3"
- id: shortcut_AltText3
- x: 66
- y: 117
- height: 24
- anchors.verticalCenter: shortcut_Btn8.verticalCenter
- anchors.left: shortcut_Btn8.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("ALT+3快捷发送此内容")
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- }
- Label {
- id: shortcut_AltLab4
- width: 14
- height: 24
- visible: true
- text: qsTr("4.")
- anchors.verticalCenter: shortcut_Btn9.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn9
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_AltLab4.right
- anchors.top: shortcut_Btn8.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_AltText4"
- id: shortcut_AltText4
- height: 24
- anchors.verticalCenter: shortcut_Btn9.verticalCenter
- anchors.left: shortcut_Btn9.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("ALT+4快捷发送此内容")
- }
- Label {
- id: shortcut_AltLab5
- width: 14
- height: 24
- visible: true
- text: qsTr("5.")
- anchors.verticalCenter: shortcut_Btn10.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn10
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_AltLab5.right
- anchors.top: shortcut_Btn9.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_AltText5"
- id: shortcut_AltText5
- height: 24
- anchors.verticalCenter: shortcut_Btn10.verticalCenter
- anchors.left: shortcut_Btn10.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("ALT+5快捷发送此内容")
- }
- Label {
- id: shortcut_Laba
- width: 14
- height: 24
- visible: true
- text: qsTr("a.")
- anchors.verticalCenter: shortcut_Btn11.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn11
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Laba.right
- anchors.top: shortcut_Btn10.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Texta"
- id: shortcut_Texta
- height: 24
- anchors.verticalCenter: shortcut_Btn11.verticalCenter
- anchors.left: shortcut_Btn11.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容a")
- }
- Label {
- id: shortcut_Labb
- width: 14
- height: 24
- visible: true
- text: qsTr("b.")
- anchors.verticalCenter: shortcut_Btn12.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn12
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Labb.right
- anchors.top: shortcut_Btn11.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Textb"
- id: shortcut_Textb
- height: 24
- anchors.verticalCenter: shortcut_Btn12.verticalCenter
- anchors.left: shortcut_Btn12.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容b")
- }
- Label {
- id: shortcut_Labc
- width: 14
- height: 24
- visible: true
- text: qsTr("c.")
- anchors.verticalCenter: shortcut_Btn13.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn13
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Labc.right
- anchors.top: shortcut_Btn12.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Textc"
- id: shortcut_Textc
- height: 24
- anchors.verticalCenter: shortcut_Btn13.verticalCenter
- anchors.left: shortcut_Btn13.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容c")
- }
- Label {
- id: shortcut_Labd
- width: 14
- height: 24
- visible: true
- text: qsTr("d.")
- anchors.verticalCenter: shortcut_Btn14.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn14
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Labd.right
- anchors.top: shortcut_Btn13.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Textd"
- id: shortcut_Textd
- height: 24
- anchors.verticalCenter: shortcut_Btn14.verticalCenter
- anchors.left: shortcut_Btn14.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容d")
- }
- Label {
- id: shortcut_Labe
- width: 14
- height: 24
- visible: true
- text: qsTr("e.")
- anchors.verticalCenter: shortcut_Btn15.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn15
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Labe.right
- anchors.top: shortcut_Btn14.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Texte"
- id: shortcut_Texte
- height: 24
- anchors.verticalCenter: shortcut_Btn15.verticalCenter
- anchors.left: shortcut_Btn15.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容e")
- }
- Label {
- id: shortcut_Labf
- width: 14
- height: 24
- visible: true
- text: qsTr("f.")
- anchors.verticalCenter: shortcut_Btn16.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn16
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Labf.right
- anchors.top: shortcut_Btn15.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Textf"
- id: shortcut_Textf
- height: 24
- anchors.verticalCenter: shortcut_Btn16.verticalCenter
- anchors.left: shortcut_Btn16.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容f")
- }
- Label {
- id: shortcut_Labg
- width: 14
- height: 24
- visible: true
- text: qsTr("g.")
- anchors.verticalCenter: shortcut_Btn17.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn17
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Labg.right
- anchors.top: shortcut_Btn16.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Textg"
- id: shortcut_Textg
- height: 24
- anchors.verticalCenter: shortcut_Btn17.verticalCenter
- anchors.left: shortcut_Btn17.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容g")
- }
- Label {
- id: shortcut_Labh
- width: 14
- height: 24
- visible: true
- text: qsTr("h.")
- anchors.verticalCenter: shortcut_Btn18.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn18
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Labh.right
- anchors.top: shortcut_Btn17.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Texth"
- id: shortcut_Texth
- height: 24
- anchors.verticalCenter: shortcut_Btn18.verticalCenter
- anchors.left: shortcut_Btn18.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容h")
- }
- Label {
- id: shortcut_Labi
- width: 14
- height: 24
- visible: true
- text: qsTr("i.")
- anchors.verticalCenter: shortcut_Btn19.verticalCenter
- anchors.left: parent.left
- font.pixelSize: 14
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 0
- }
- Button {
- id: shortcut_Btn19
- width: 50
- height: 28
- text: qsTr("SEND")
- anchors.left: shortcut_Labi.right
- anchors.top: shortcut_Btn18.bottom
- font.pixelSize: 12
- anchors.leftMargin: 2
- anchors.topMargin: 0
- }
- TextField {
- objectName: "shortcut_Texti"
- id: shortcut_Texti
- height: 24
- anchors.verticalCenter: shortcut_Btn19.verticalCenter
- anchors.left: shortcut_Btn19.right
- font.pixelSize: 14
- anchors.leftMargin: 4
- background: Rectangle {
- color: "#ffffff"
- anchors.fill: parent
- anchors.bottomMargin: 0
- }
- bottomPadding: 0
- selectByMouse: true
- topPadding: 0
- selectedTextColor: "#ffffff"
- selectionColor: "#000000"
- placeholderText: qsTr("我是一个快捷发送内容i")
- }
- }
- }
- Rectangle {
- id: ip_leftSidePage
- width: 180
- visible: false
- color: "#00000000"
- radius: 10
- border.color: "#000000"
- border.width: 0
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.topMargin: 0
- anchors.bottomMargin: 0
- z: 0
- ComboBox {
- id: ip_nameCombo
- height: 40
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- font.pixelSize: 16
- anchors.topMargin: 6
- wheelEnabled: true
- anchors.rightMargin: 20
- anchors.leftMargin: 20
- model: ["TCP Client", "TCP Server", "UDP", "MQTT"]
- }
- Label {
- id: ip_myAddrLab
- width: 75
- height: 40
- text: qsTr("本地地址")
- anchors.left: ip_nameCombo.right
- anchors.bottom: ip_nameCombo.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.topMargin: 2
- anchors.leftMargin: 0
- }
- Label {
- id: ip_myPortLab
- width: 75
- height: 40
- text: qsTr("本地端口")
- anchors.left: ip_myAddrText.right
- anchors.bottom: ip_nameCombo.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.topMargin: 2
- anchors.leftMargin: 0
- }
- Label {
- id: ip_otherAddrLab
- width: 75
- height: 40
- text: qsTr("远程地址")
- anchors.left: ip_switch.right
- anchors.top: ip_myPortLab.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.topMargin: 2
- anchors.leftMargin: 0
- }
- Label {
- id: ip_otherPortLab
- width: 75
- height: 40
- text: qsTr("远程端口")
- anchors.left: ip_otherAddrText.right
- anchors.top: ip_myPortLab.bottom
- font.pixelSize: 16
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.topMargin: 2
- anchors.leftMargin: 0
- }
- SwitchDelegate {
- id: ip_switch
- height: 36
- text: qsTr("连接")
- anchors.left: parent.left
- anchors.right: ip_nameCombo.right
- anchors.top: ip_nameCombo.bottom
- anchors.topMargin: 5 //上间距
- padding: 5
- spacing: 10
- anchors.leftMargin: 20
- focusPolicy: Qt.NoFocus
- font.pixelSize: 16
- leftPadding: 6
- anchors.rightMargin: 0
- rightPadding: 10
- }
- Label {
- id: topic_sub_lab
- height: 36
- anchors.left: ip_switch.left
- anchors.top: ip_switch.bottom
- anchors.leftMargin: 5
- anchors.topMargin: 5
- text: "主题:"
- font.pixelSize: 16
- }
- TextField {
- id: subField
- anchors.left: topic_sub_lab.right
- anchors.bottom: topic_sub_lab.bottom
- height: 40
- width: 400
- placeholderText: "<订阅主题>"
- enabled: true
- }
- Button {
- id: subButton
- anchors.left: subField.right
- anchors.bottom: subField.bottom
- anchors.leftMargin: 5
- height: 40
- width: 50
- text: "订阅"
- visible: true //tempSubscription === 0
- }
- TextArea {
- id: ip_myAddrText
- height: 40
- anchors.left: ip_myAddrLab.right
- anchors.bottom: ip_nameCombo.bottom
- font.pixelSize: 14
- verticalAlignment: Text.AlignBottom
- anchors.rightMargin: 2
- clip: true
- anchors.topMargin: 2
- placeholderText: qsTr("192.168.1.254")
- anchors.leftMargin: 0
- }
- TextArea {
- id: ip_myPortText
- height: 40
- anchors.left: ip_myPortLab.right
- anchors.bottom: ip_nameCombo.bottom
- font.pixelSize: 14
- verticalAlignment: Text.AlignBottom
- anchors.rightMargin: 2
- clip: true
- anchors.topMargin: 2
- placeholderText: qsTr("3000")
- anchors.leftMargin: 0
- }
- TextArea {
- id: ip_otherAddrText
- height: 40
- anchors.left: ip_otherAddrLab.right
- anchors.top: ip_nameCombo.bottom
- font.pixelSize: 14
- verticalAlignment: Text.AlignBottom
- anchors.rightMargin: 2
- clip: true
- anchors.topMargin: 2
- anchors.leftMargin: 0
- placeholderText: qsTr("120.27.222.26")
- }
- TextArea {
- id: ip_otherPortText
- height: 40
- anchors.left: ip_otherPortLab.right
- anchors.top: ip_nameCombo.bottom
- font.pixelSize: 14
- verticalAlignment: Text.AlignBottom
- anchors.rightMargin: 2
- clip: true
- topPadding: 8
- anchors.topMargin: 2
- placeholderText: qsTr("1883")
- anchors.leftMargin: 0
- //enabled: client_mqtt.state === MqttClient.Disconnected
- }
- anchors.leftMargin: 0
- }
- Rectangle {
- id: hoverDescriptionPage
- x: 0
- y: 0
- width: hoverDescriptionText.width
- height: hoverDescriptionText.height
- visible: false
- Text {
- id: hoverDescriptionText
- width: contentWidth
- height: contentHeight
- color: "#ff0000"
- text: qsTr("接收编码")
- font.pixelSize: 14
- }
- }
- Rectangle {
- id: tx_rxBytePage
- color: "#00ffffff"
- height: 60
- anchors.left: parent.left
- anchors.right: rxConfig.left
- //anchors.top: txConfig.top
- anchors.bottom: sendDataPage.top
- anchors.leftMargin: 10
- z: 1
- //anchors.topMargin: -68
- Label {
- id: rxByteLab
- height: 34
- text: qsTr("RxB")
- anchors.left: parent.left
- anchors.bottom: txByteLab.top
- font.pixelSize: 14
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.bottomMargin: 0
- anchors.leftMargin: 4
- }
- Button {
- id: rxClearBtn
- width: 45
- height: 34
- text: qsTr("清零")
- anchors.right: parent.right
- anchors.bottom: txClearBtn.top
- anchors.bottomMargin: 0
- anchors.rightMargin: 6
- }
- Label {
- id: txByteLab
- height: 34
- text: qsTr("TxB")
- anchors.left: parent.left
- anchors.bottom: parent.bottom
- font.pixelSize: 14
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.leftMargin: 4
- anchors.bottomMargin: 0
- }
- Button {
- id: txClearBtn
- width: 45
- height: 34
- text: qsTr("清零")
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 0
- anchors.rightMargin: 6
- }
- TextInput {
- id: rxByteText
- height: 34
- text: qsTr("0")
- anchors.left: rxByteLab.right
- anchors.right: rxClearBtn.left
- anchors.bottom: txByteText.top
- font.pixelSize: 14
- horizontalAlignment: Text.AlignRight
- verticalAlignment: Text.AlignVCenter
- clip: true
- anchors.bottomMargin: 0
- selectionColor: "#000000"
- selectByMouse: true
- persistentSelection: true
- readOnly: true
- anchors.rightMargin: 4
- anchors.leftMargin: 2
- }
- TextInput {
- id: txByteText
- height: 34
- text: qsTr("0")
- anchors.left: txByteLab.right
- anchors.right: txClearBtn.left
- anchors.bottom: parent.bottom
- font.pixelSize: 14
- horizontalAlignment: Text.AlignRight
- verticalAlignment: Text.AlignVCenter
- clip: true
- selectByMouse: true
- persistentSelection: true
- readOnly: true
- selectionColor: "#000000"
- anchors.rightMargin: 4
- anchors.leftMargin: 2
- anchors.bottomMargin: 0
- }
- }
- }
- }
- Rectangle {
- id: test_page
- visible: false
- color: "#ffffff"
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: tabBar.bottom
- anchors.bottom: parent.bottom
- anchors.topMargin: 5
- Text {
- id: text1
- text: "图像预览"
- anchors.verticalCenter: parent.verticalCenter
- font.pixelSize: 20
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- }
|