Layoutsqt直通车

qt直通车  时间:2021-04-16  阅读:()
pQtWidgetsandQtQuick.
Controls-AComparisonQtDeveloperDaysEurope2014PresentedbyKevinKrammerkevin.
krammer@kdab.
compTheQuestionTheQuesonSide-by-SideComparisonConclusionsTheQuestionpCommonQuestionWhatshouldIuseforanewproject:QtWidgetsorQtQuick.
ControlsTheQuestionpGoodAnswerItdepends!
TheQuestionpSide-by-SideComparisonTheQuestionSide-by-SideComparisonConclusionsSide-by-SideComparisonpBaseLineSetofstandardinterfaceelementse.
g.
Button,CheckBox,SliderLayoutingStylingPlatformLook&FeelCustomApplicationWindowMenuBar,ToolBar,StatusBar,etcDialogsStandardDialogsBaseforCustomDialogsSide-by-SideComparisonpRequirementsQtWidgetsSystemGraphicsBuffersQtVersionbasicallyanyProgrammingLanguagesForUseC++(QML+JavaScriptwithQMLregisteredwidgets)ForExtendingC++QtQuick.
ControlsSystemOpenGLQtVersion>5.
1ProgrammingLanguagesForUseQML+JavaScriptForExtendingQML+JavaScript(composition)C++(customrendering)Side-by-SideComparisonpLayoutingQtWidgetsHorizontal/VerticalBoxLayout,GridLayout,FormLayoutLayouts"ll"parentwidgetWidgetsprovide:SizeHintsSizePoliciesDevelopercanoverridesizehint,setpolicyQtQuick.
ControlsRowLayout,ColumnLayout,GridLayout,Anchors(relativepositioning)LayoutsneedtobeexplicitlysizedoranchoredControlsprovide:ImplicitSizeDevelopercanattachresizehintsSide-by-SideComparisonpLayouting-ExampleQtWidgets1QVBoxLayout*layout=newQVBoxLayout(this);23QPushButton*one=newQPushButton("One");4layout->addWidget(one);56QPushButton*two=newQPushButton("Two");7layout->addWidget(two);89QPushButton*three=newQPushButton("Three");10layout->addWidget(three);QtQuick.
Controls1ColumnLayout{2anchors.
ll:parent34Button{text:"One"}5Button{text:"Two"}6Button{text:"Three"}7}Side-by-SideComparisonp.
StylingQtWidgetsPlatformNativeStylingQtStyleSheets(QSS)QStylePluginsQtQuick.
ControlsPlatformNativeStylingStyleComponentReplacepartsofthecontrolSide-by-SideComparisonp.
Styling-ExampleQtWidgetsQPushButton*button=newQPushButton("ClickMe!
",window);button->setStyleSheet("QPushButton{background-color:white}");QtQuick.
Controls1Button{2x:50;y:503text:"ClickMe!
"45style:ButtonStyle{6background:Rectangle{7color:"white"8border.
color:"#ABABAB"910}11}Side-by-SideComparisonp.
ApplicationWindowQtWidgetsQMainWindowMenuBarStatusBarAnynumberofToolBarsAddingactionsresultsinToolButtonsDockWidgetsCentralWidgetresizedwithwindowQtQuick.
ControlsApplicationWindowMenuBarStatusBarOneToolBarCreateToolButtons,thenassociateactionContentitemneedsexplicitresizehandlingSide-by-SideComparisonp.
DialogsQtWidgetsStandardDialogsColor,File,Font,MessagBox,Print,Progress,WizardCustomDialogsBasetypeQDialogModalandNon-modalQDialogButtonBoxforplatformcorrectbuttonhandlingaccesstoindividualbuttonspossibleaccept/rejectcanbeinterceptedQtQuick.
ControlsStandardDialogsColor,File,Font,MessageCustomDialogsBasetypeDialogModalandNon-modalstandardButtonsforplatformcorrectbuttonhandlingcurrentlynotaccesstobuttonsAllactionsclosethedialogSide-by-SideComparisonp.
ToolingQtWidgetsQtDesignerinQtCreatorandstand-aloneCodegeneratedbyUICUsedbydelegationincustomclassesTestingQtTestforunittestingSquishforUItestingGammarayforruntimeinspectionC++toolsfordebugging/analysisofcustomcodeQtQuick.
ControlsQtQuickDesignerinQtCreatorManipulatesQMLcodedirectlyUsebymanualeditingofthesamelesTestingQtTestforunittestingSquishforUItestingGammarayforruntimeinspectionQtCreatorJSdebugger/prolerSide-by-SideComparisonp.
ConclusionsTheQuestionSide-by-SideComparisonConclusionsConclusionsp.
ConclusionsBothtechnologiesviableforwiderangeofprojectsQtQuick.
ControlsnotascompleteyetbutrapidlyevolvingKnowledgeoftypeseasilytransferableKnowledgeofbehaviornotalwaysapplicableConclusions

hypervmart:英国/荷兰vps,2核/3GB内存/25GB NVMe空间/不限流量/1Gbps端口/Hyper-V,$10.97/季

hypervmart怎么样?hypervmart是一家国外主机商,成立于2011年,提供虚拟主机、VPS等,vps基于Hyper-V 2012 R2,宣称不超售,支持linux和windows,有荷兰和英国2个数据中心,特色是1Gbps带宽、不限流量。现在配置提高,价格不变,性价比提高了很多。(数据中心不太清楚,按以前的记录,应该是欧洲),支持Paypal付款。点击进入:hypervmart官方网...

Cloudxtiny:£1.5/月,KVM-512MB/100GB/英国机房

Cloudxtiny是一家来自英国的主机商,提供VPS和独立服务器租用,在英国肯特自营数据中心,自己的硬件和网络(AS207059)。商家VPS主机基于KVM架构,开设在英国肯特机房,为了庆祝2021年欧洲杯决赛英格兰对意大利,商家为全场VPS主机提供50%的折扣直到7月31日,优惠后最低套餐每月1.5英镑起。我们对这场比赛有点偏见,但希望这是一场史诗般的决赛!下面列出几款主机套餐配置信息。CPU...

A400互联1H/1G/10M/300G流量37.8元/季

A400互联是一家成立于2020年的商家,本次给大家带来的是,全新上线的香港节点,cmi+cn2线路,全场香港产品7折优惠,优惠码0711,A400互联,只为给你提供更快,更稳,更实惠的套餐。目前,商家推出香港cn2节点+cmi线路云主机,1H/1G/10M/300G流量,37.8元/季,云上日子,你我共享。A400互联优惠码:七折优惠码:0711A400互联优惠方案:适合建站,个人开发爱好者配置...

qt直通车为你推荐
支持ipadwordpress模板wordpress 模板和wordpress主题有什么不同企业推广最常见的推广方式有哪些新iphone也将禁售iPhone8plus在2020年还会有货吗govya北京大学cuteftp购物车(淘宝)为什么推荐购物车购买,是什么意思啊?pintang深圳御品堂怎么才能保证他们卖的东西都是有机食品?电子商务世界世界第一的电子商务网站???网站方案设计求一篇校园网络设计的方案
php网站空间 便宜vps linuxvps 代理域名备案 域名商 冰山互联 la域名 外国空间 光棍节日志 国内php空间 京东商城双十一活动 小米数据库 hostker 有奖调查 老左来了 中国电信测网速 免费申请个人网站 卡巴斯基是免费的吗 创建邮箱 便宜空间 更多