Make GUI scalable

This commit is contained in:
Robin Stuart 2016-12-14 23:33:17 +00:00
parent 0f9a326398
commit 28ea2f1c69
7 changed files with 77 additions and 74 deletions

View file

@ -20,15 +20,19 @@
BarcodeItem::BarcodeItem()
: QGraphicsItem()
{
w=550;
h=230;
w=693;
h=378; // Default widget size when created
}
BarcodeItem::~BarcodeItem()
{
}
void BarcodeItem::setSize(int width, int height) {
w = width;
h = height;
}
QRectF BarcodeItem::boundingRect() const
{
return QRectF(0, 0, w, h);