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

易速互联月付299元,美国独立服务器促销,加州地区,BGP直连线路,10G防御

易速互联怎么样?易速互联是国人老牌主机商家,至今已经成立9年,商家销售虚拟主机、VPS及独立服务器,目前商家针对美国加州萨克拉门托RH数据中心进行促销,线路采用BGP直连线路,自带10G防御,美国加州地区,100M带宽不限流量,月付299元起,有需要美国不限流量独立服务器的朋友可以看看。点击进入:易速互联官方网站美国独立服务器优惠套餐:RH数据中心位于美国加州、配置丰富性价比高、10G DDOS免...

企鹅小屋6折年付240元起,美国CN2 GIA VPS促销,独享CPU,三网回程CN2 GIA

企鹅小屋怎么样?企鹅小屋最近针对自己的美国cn2 gia套餐推出了2个优惠码:月付7折和年付6折,独享CPU,100%性能,三网回程CN2 GIA网络,100Mbps峰值带宽,用完优惠码1G内存套餐是年付240元,线路方面三网回程CN2 GIA。如果新购IP不能正常使用,请在开通时间60分钟内工单VPS技术部门更换正常IP;特价主机不支持退款。点击进入:企鹅小屋官网地址企鹅小屋优惠码:年付6折优惠...

7月RAKsmart独立服务器和站群服务器多款促销 G口不限量更低

如果我们熟悉RAKsmart商家促销活动的应该是清楚的,每个月的活动看似基本上一致。但是有一些新品或者每个月还是有一些各自的特点的。比如七月份爆款I3-2120仅30美金、V4新品上市,活动期间5折、洛杉矶+硅谷+香港+日本站群恢复销售、G口不限流量服务器比六月份折扣力度更低。RAKsmart 商家这个月依旧还是以独立服务器和站群服务器为主。当然也包括有部分的低至1.99美元的VPS主机。第一、I...

qt直通车为你推荐
您的apple操作httpinternalservererrorError 500--Internal Server Error登陆建行个人网银,WIN7 64位IE10版本!企业cms目前最好用的企业cms是哪个?重庆网络公司一九互联重庆本地的网约车平台有哪些?如何识别比较正规的网约车平台?360搜狗奇虎360到底是做什么的?asp.net什么叫ASP.NET?dell服务器bios设置dell R410服务器 bios设置参数如何恢复出厂设置?360公司迁至天津请问360公司的全称是什么?文档下载手机下载的文件在哪里能找到
百度域名 国外vps主机 怎么申请域名 主机屋 132邮箱 host1plus technetcal bbr oneasiahost blackfriday java主机 优惠码 香港cdn 宕机监控 云全民 刀片服务器的优势 wordpress中文主题 浙江服务器 杭州电信宽带优惠 注册阿里云邮箱 更多