工具栏和状态栏
//工具栏
void MainWindow::on_actionTool_triggered()
{
bool visible = ui->toolBar->isVisible();
ui->toolBar->setVisible(!visible);
ui->actionTool->setChecked(!visible);
}
//状态栏
void MainWindow::on_actionZuangTai_triggered()
{
bool visible = ui->statusbar->isVisible();
ui->statusbar->setVisible(!visible);
ui->actionZuangTai->setChecked(!visible);
}
//全选
void MainWindow::on_actionAll_triggered()
{
ui->textEdit->selectAll();
}