Widget::setWindowTitle("Hello world")这里为何是 :: 而不是. 呢?
Widget::setWindowTitle("Hello world")这里为何是 :: 面不是. 呢?
setWindowTitle 和 setCurrentIndex 同样都是 Public slot, 为何下面这里 就不是 用 ::
下面这句就可以:
ui->stackedWidget->setCurrentIndex(0); // 这句就是对的。
ui->pushButton_14->setText("other"); //这句也是对的。
调用函数时 有时是 -> 有时是 :: 有点晕。