马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册
x
俺在学习软件编程中,遇到了一个问题很困惑,就是现有的一些类库中,各种的函数,属性非常繁杂, 比如qt里面一个QTableView类,里面的光是继承来的属性和公共函数就有这么多:
16 properties inherited from QAbstractItemView
2 properties inherited from QAbstractScrollArea
6 properties inherited from QFrame
58 properties inherited from QWidget
1 property inherited from QObject
57 public functions inherited from QAbstractItemView
17 public functions inherited from QAbstractScrollArea
14 public functions inherited from QFrame
217 public functions inherited from QWidget
29 public functions inherited from QObject
13 public functions inherited from QPaintDevice
还没包括这个类自己独有的几十个函数
我觉得应该是一般需要实现的功能,选对了类,配合相应的函数,就很容易实现了. 我的困惑是:在如此众多的资料中,如何才能快速地知道哪个类,哪个函数是最适合我的需要的呢?
一个类尚且如此,一个Qt里面恐怕有上百个类, 要想写好一个qt程序, 岂不是要把整个qt库的内容都装在脑子里了才行?
写软件是不是也像老军医, 得把几百个方子背得滚瓜烂熟才行啊? |