|
2Qter豆
在Qt5开发与实例这本书中的源代码CH602,mainwidget.cpp中,同样是QComboBox,但是addItem函数参数中一个有static_cast<int>,一个没有,参数都是Qt里自带的枚举类型啊,求大神指教
penStyleComboBox->addItem(tr("CustomDashLine"),static_cast<int>(Qt::CustomDashLine));
penJoinComboBox->addItem(tr("BevelJoin"),Qt::BevelJoin); |
|