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

Digital-vm80美元,1-10Gbps带宽日本/新加坡独立服务器

Digital-vm是一家成立于2019年的国外主机商,商家提供VPS和独立服务器租用业务,其中VPS基于KVM架构,提供1-10Gbps带宽,数据中心可选包括美国洛杉矶、日本、新加坡、挪威、西班牙、丹麦、荷兰、英国等8个地区机房;除了VPS主机外,商家还提供日本、新加坡独立服务器,同样可选1-10Gbps带宽,最低每月仅80美元起。下面列出两款独立服务器配置信息。配置一 $80/月CPU:E3-...

HostKvm开年促销:香港国际/美国洛杉矶VPS七折,其他机房八折

HostKvm也发布了开年促销方案,针对香港国际和美国洛杉矶两个机房的VPS主机提供7折优惠码,其他机房业务提供8折优惠码。商家成立于2013年,提供基于KVM架构的VPS主机,可选数据中心包括日本、新加坡、韩国、美国、中国香港等多个地区机房,均为国内直连或优化线路,延迟较低,适合建站或者远程办公等。下面列出几款主机配置信息。美国洛杉矶套餐:美国 US-Plan1CPU:1core内存:2GB硬盘...

美得云(15元/月)美国cera 2核4G 15元/月 香港1核 1G 3M独享

美得云怎么样?美得云好不好?美得云是第一次来推广软文,老板人脾气特别好,能感觉出来会用心对待用户。美得云这次为大家提供了几款性价比十分高的产品,美国cera 2核4G 15元/月 香港1核 1G 3M独享 15元/月,并且还提供了免费空间给大家使用。嘻嘻 我也打算去白嫖一个空间了。新用户注册福利-8折优惠码:H2dmBKbF 截止2021.10.1结束。KVM架构,99.99%高可用性,依托BGP...

qt直通车为你推荐
支持ipad支持ipadphpwindPHPWind 是什么?怎么用?苹果appstore宕机最近app store一直不能用 怎么回事啊 改dns也不能用 持续好久好久了波音737起飞爆胎一般的客机的起飞速度是多少?密码cuteftp加多宝和王老吉王老吉和加多宝的关系?宜人贷官网我在宜人财富贷款2万元,下款的时候时候系统说银行卡号错误,然 我在宜人财富贷款2万我在宜人财富贷款腾讯公司电话腾讯总公司服务热线是多少加多宝与王老吉王老吉和加多宝什么关系?
域名空间代理 已备案域名出售 主机测评 独享100m 冰山互联 vpsio cpanel主机 10t等于多少g 网站保姆 国外免费空间 北京主机 135邮箱 免费吧 网游服务器 shuang12 广州虚拟主机 申请免费空间 免备案cdn加速 存储服务器 香港ip 更多