(143)继续完善 QAction 的功能代码 :
++接着完善遍历节点的 QAction 的代码 :
++大小缩放的代码 :
++
++
(144)给出 QDockWidget 的信号与槽函数 :
(145)接着完善 QTreeWidget 的信号与槽函数代码 :
++老师只讲解了上面的信函数,但书上还有几个信号函数,也整理附加上,没什么功能,只是验证其有这些信号函数 :
void MainWindow::on_treeFiles_itemChanged(QTreeWidgetItem * item, int column)
{
Q_UNUSED(item);
Q_UNUSED(column);
qDebug("itemChanged() is emitted");
}
void MainWindow::on_treeFiles_itemSelectionChanged()
{
qDebug("itemSelectionChanged() is emitted");
}
void MainWindow::on_treeFiles_itemCollapsed(QTreeWidgetItem *item)
{
Q_UNUSED(item);
qDebug("itemCollapsed() is emitted");
}
void MainWindow::on_treeFiles_itemExpanded(QTreeWidgetItem *item)
{
Q_UNUSED(item);
qDebug("itemExpanded() is emitted");
}
void MainWindow::on_treeFiles_itemClicked(QTreeWidgetItem *item, int column)
{
Q_UNUSED(item);
Q_UNUSED(column);
qDebug("itemClicked() is emitted");
}
void MainWindow::on_treeFiles_itemPressed(QTreeWidgetItem *item, int column)
{
Q_UNUSED(item);
Q_UNUSED(column);
qDebug("itemPressed() is emitted");
}
(146)
谢谢