解决scantool扫描信息显示不全的问题;BUG-1074

This commit is contained in:
yangjiaxuan 2024-06-11 17:25:32 +08:00
parent ef0aaa835d
commit 96457219d0
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,8 @@ Dialog_ScanInfo::Dialog_ScanInfo(class MainWindow *mainWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
ui->labelScanInfo->setWordWrap(true);
ui->labelScanInfo->setAlignment(Qt::AlignCenter);
QDesktopWidget *desktop = QApplication::desktop();
QRect workArea = desktop->availableGeometry();

View File

@ -46,6 +46,12 @@
</item>
<item>
<widget class="QLabel" name="labelScanInfo">
<property name="minimumSize">
<size>
<width>220</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Scan info</string>
</property>