void Note::ZhuangTL()
{
QStatusBar *statusbar = this->statusBar();
QDateTime time = QDateTime::currentDateTime();
QString str = time.toString("yyyy-MM-dd ddd");
QLabel * statulabel = new QLabel(str);
QLabel * statulabel1 = new QLabel(QStringLiteral("系统时间:"));
statusbar->addWidget(statulabel1);
statusbar->addWidget(statulabel);
textInfo = new QLabel();
textInfo->setText("Ready");
statusBar()->addPermanentWidget(textInfo);
connect(ui.plainTextEdit, SIGNAL(cursorPositionChanged()), this, SLOT(showTextInfo()));
}
现在的情况是 已经实现了状态栏的显示,可再按一下状态栏,下面状态栏又重复出来一个 如何判断来实现按一下显示再按隐藏