学习QT的感悟

本文详细介绍了C++GUIQt4编程的三个阶段:基础Qt部分,中级Qt部分和高级Qt部分。每个阶段都有明确的目标和截止日期。文章特别强调了在连接信号和槽时应注意的事项,包括信号和槽参数类型必须匹配,以及对象名称更改时Qt不能自动更新引用的问题。此外,文章还概述了Qt编程中常见的不便之处。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


1. <C++ GUI Qt 4 编程(第二版)>

     the first part <basic qt> 

           Goal: be familiar with most of qt widget and create form application

            Deadline:June19 ~ June21

 Caution1:

         trying to specify signal or slot argument values when connecting will cause your code to fail at run-time. Theconnectfunction understands only the argumenttypes

         The following example will fail at run-time

QObject::connect(sender, SIGNAL(textChanged("testString")), receiver, SLOT(setText("testString")));

 

Caution2:

            signal and slot argument types must be the same when connecting           

     QObject::connect(sender, SIGNAL(textChanged(QString)), receiver, SLOT(setText(int)));


 Inconvenience:

           Qt cann't automatically alter all the referring when the object name  is  changed.



 

2.  the second part <medium qt>

3.  the third part <high qt>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值