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

HostKvm新上联通CUVIP线路VPS,八折优惠后1G内存套餐$5.2/月起

最近上洛杉矶机房联通CUVIP线路主机的商家越来越多了,HostKvm也发来了新节点上线的邮件,适用全场8折优惠码,基于KVM架构,优惠后最低月付5.2美元起。HostKvm是一家成立于2013年的国人主机商,提供基于KVM架构的VPS主机,可选数据中心包括日本、新加坡、韩国、美国、中国香港等多个地区机房,君选择国内直连或优化线路,延迟较低,适合建站或者远程办公等。以洛杉矶CUVIP线路主机为例,...

易探云:香港CN2云服务器低至18元/月起,183.60元/年

易探云怎么样?易探云最早是主攻香港云服务器的品牌商家,由于之前香港云服务器性价比高、稳定性不错获得了不少用户的支持。易探云推出大量香港云服务器,采用BGP、CN2线路,机房有香港九龙、香港新界、香港沙田、香港葵湾等,香港1核1G低至18元/月,183.60元/年,老站长建站推荐香港2核4G5M+10G数据盘仅799元/年,性价比超强,关键是延迟全球为50ms左右,适合国内境外外贸行业网站等,如果需...

久久网云-目前最便宜的国内,香港,美国,日本VPS云服务器19.9元/月起,三网CN2,2天内不满意可以更换其他机房机器,IP免费更换!。

久久网云怎么样?久久网云好不好?久久网云是一家成立于2017年的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务,久久网云目前提供有美国免费主机、香港主机、韩国服务器、香港服务器、美国云服务器,香港荃湾CN2弹性云服务器。专注为个人开发者用户,中小型,大型企业用户提供一站式核心网络云端服务部署,促使用户云端部署化简为零,轻松快捷运用云计算!多年云计算领域服务经验,遍布亚太地区的海量节点为...

qt直通车为你推荐
manifestedaspServicemytoupian粤语有几个拼音字母?internalservererrorError 500--Internal Server Error如何解决?flashwind用flashwind这个加速器玩游戏,会被盗号吗?会被封号吗?linux防火墙设置如何在Linux中启动/停止和启用/禁用FirewallD和Iptables防火墙asp.net网页制作使用ASP.net技术创建一个网页,如何做?重庆网站制作请问重庆那一家网站制作公司资信度比较好?技术实力雄厚呢?计算机cuteftp闪拍网关于闪拍网骗人的情况?
外国虚拟主机 广州主机租用 日本私人vps 广东vps 过期域名抢注 亚洲大于500m raksmart 512m 国内加速器 国外在线代理 本网站服务器在美国 web服务器架设 日本bb瘦 有奖调查 秒杀汇 安徽双线服务器 网购分享 美国凤凰城 服务器防火墙 atom处理器 更多