qt怎么滚动输出数据库中的信息到显示器上面✀

2025-04-13 17:29:48
推荐回答(2个)
回答(1):

void MainWindow::onBtnMenuMaxClicked(bool)
{
QRect deskTopRect = qApp->desktop()->availableGeometry();

if (max==true) {
int allw = deskTopRect.width();
int allh = deskTopRect.height();
int unitw=allw/4;
int unith=allh/4;

this->resize(unitw*2,unith*2);
this->move(unitw,unith);
ui->pushButton_max->setToolTip(tr("最大化"));
}
if (max==false)
{
qDebug()<<"dataRecvSend rectApp= "<this->setGeometry(deskTopRect);
ui->pushButton_max->setToolTip(tr("还原"));
}
max = !max;
}

回答(2):

去设置里面
瞧瞧啊
很容易弄的