Image 01
profile-image

kolloid

Tom Sobota Madrid, Spain
QLedIndicator

Qt Widgets 8 comments

by tnq
Score 53.3%
Jan 19 2010
Hi,
I found QLedIndicator very useful. I needed a bar of leds and was about to code it myself, when I found your widget.
Compiling in Visual Studio 2005 I got an error in qledindicator.h, in the initialization of scaledSize. At least in my compiler you can initialize in this way only integral (int, char,...) constants but not floats etc. So I changed the definition to "static const qreal scaledSize;" and put the initialization in QLedIndicator.cpp, just before the constructor:

const qreal QLedIndicator::scaledSize = 1000;

QLedIndicator::QLedIndicator(QWidget *parent) : QAbstractButton(parent)


and it compiled ok
cheers
Tom

- Jan 19 2010