update:固定尺寸

This commit is contained in:
Barry 2019-06-15 07:34:36 +08:00
commit d7532cef33
3 changed files with 7 additions and 6 deletions

View file

@ -77,7 +77,6 @@ void Dialog::initUI()
ui->formatBox->addItem("mp4"); ui->formatBox->addItem("mp4");
ui->formatBox->addItem("mkv"); ui->formatBox->addItem("mkv");
ui->videoSizeBox->setCurrentIndex(0);
} }
void Dialog::on_updateDevice_clicked() void Dialog::on_updateDevice_clicked()

View file

@ -6,19 +6,19 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>639</width> <width>685</width>
<height>600</height> <height>600</height>
</rect> </rect>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>520</width> <width>685</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>639</width> <width>685</width>
<height>16777215</height> <height>16777215</height>
</size> </size>
</property> </property>
@ -168,7 +168,7 @@
<item row="0" column="4"> <item row="0" column="4">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
<string>format</string> <string>record format</string>
</property> </property>
</widget> </widget>
</item> </item>

View file

@ -30,6 +30,8 @@ VideoForm::VideoForm(const QString& serial, quint16 maxSize, quint32 bitRate, co
ui->setupUi(this); ui->setupUi(this);
initUI(); initUI();
setWindowFlag(Qt::WindowStaysOnTopHint);
m_server = new Server(); m_server = new Server();
m_frames.init(); m_frames.init();
m_decoder.setFrames(&m_frames); m_decoder.setFrames(&m_frames);