QT學習(二)按鈕和Label

新建工程 Qt Widgets Application 雙擊mainwindow.ui自動打開Qt Designer 放置一個Push Button, 再放置一個Label 右鍵->轉到槽->選擇信號(事件類型) 分別添加"clicked()"和"pressed()" 在mainwindow.cpp中編寫兩個回調函數, 此處使用 qDebug(" "); 在控制檯輸出字符. 在mainwindow
相關文章
相關標籤/搜索