Custom qrcode renderer to allow smooth resizing

This commit is contained in:
Aditya Kulkarni
2018-10-30 16:04:26 -07:00
parent 489bb4ae5f
commit 75e755707c
5 changed files with 96 additions and 39 deletions

View File

@@ -22,7 +22,7 @@
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>3</number>
<number>2</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
@@ -316,8 +316,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>849</width>
<height>369</height>
<width>841</width>
<height>321</height>
</rect>
</property>
<layout class="QVBoxLayout" name="sendToLayout">
@@ -670,7 +670,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="qrcodeDisplay">
<widget class="QRCodeLabel" name="qrcodeDisplay">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
@@ -718,7 +718,7 @@
<x>0</x>
<y>0</y>
<width>889</width>
<height>19</height>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@@ -783,6 +783,13 @@
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>QRCodeLabel</class>
<extends>QLabel</extends>
<header>qrcodelabel.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>inputsCombo</tabstop>