QLedIndicator
Qt Widgets
Score 54%
Description:

Simple LED indicator, very similar to KLed, but without KDE dependencies and with 2-color gradient. Widget subclasses QAbstractButton offering button functions. Included demo (screenshot) shows how to use it.

Qt Designer plugin included. Color properties supported.
Last changelog:

7 years ago

v0.1.1 - static const member init fix (for Visual Studio 2005)
v0.1.0 - initial release

paulpeter

4 years ago

Hey Guys,

Here is a patch for the widget above. The patch adds support for instant color update, contains fixes to suppress compiler warnings and removes semicolons at the end of Q_PROPERTY macros.

https://gist.github.com/anonymous/6211503

Report

doyal101

3 years ago

I am using QLedIndicator with QTDesigner 4.8.4 and QT 5.1.1 on a fairly large (1M LoC) project. I have made the patch changes in your post. When my solution compiles (VS2010, release mode), moc_qledindicator.cpp takes 25 minutes to compile. In debug builds it doesn't take more than a couple of seconds. I am at a total loss to explain to the build and sqa time why it takes so long. Have you got any ideas?
thanks,
doyal

Report

JohanW

5 years ago

First - thank you for a very nice Widget.

I have a question. At this page it says that the indicator is released under LGPL. When I look in qledindicatorplugin.h in the plugin project you have provided, it looks as if it was released under GPL.

What was the intention, and is it possible to clarify the information in qledindicatorplugin.h if LGPL was intended?

I'm developing proprietary applications, so it is quite important to not include any GPL modules by accident.

Best
Johan

Report

astodolski

5 years ago

This example works OK as long as you are not using it along with an ActiveX control. I have an app that works well with an ActiveX control. As soon as place this control in a layout, all signals are broken for the ActiveX control.

I voted it down.

Report

AERO

7 years ago

Dear Sirs.
I'm using the Qt version SDK for Windows (Qt 4.6 and Qt Creator 1.3)
I compiled with Qt Creator 1.3.1. QLedIndicatorPlugin project in Release mode, generating the dll QLedIndicatorPlugin.dll.
I created a new project with Qt Creator, with a form dialog.ui. I tried to load the plugin via the menu Tools -> Form Editor -> About Qt Designer plugins
Press the refresh button, and tells me that the plugin fails, indicating;
Expected key full-config> <Windows msvc release, but has received <Windows mingw release full-config>

I have read in some forums that the problem is that Qt Creator is complicated VC + +, and that I should compile with mingw Qt Creator.
I downloaded the code of Qt Creator, and I tried to compile with Qt Creator, but I get an error message. (*** Multiple target patterns. Stop.)

Do not know if I compile the project directly com mingw Qt Creator, but not like this is done.

Which is not the solution to generate and load plugins without the need for VC + +.

As much as I read in the forums, there are many different answers, but none conclusive.

Qt Creator, it seems a good tool for programming with C + +, but when I use other plugins or dll, I can not move forward.

I would appreciate any respons
Thank you

Report

AERO

7 years ago

Dear Sirs.
I'm using the Qt version SDK for Windows (Qt 4.6 and Qt Creator 1.3)
I compiled with Qt Creator 1.3.1. QLedIndicatorPlugin project in Release mode, generating the dll QLedIndicatorPlugin.dll.
I created a new project with Qt Creator, with a form dialog.ui. I tried to load the plugin via the menu Tools -> Form Editor -> About Qt Designer plugins
Press the refresh button, and tells me that the plugin fails, indicating;
Expected key full-config> <Windows msvc release, but has received <Windows mingw release full-config>

I have read in some forums that the problem is that Qt Creator is complicated VC + +, and that I should compile with mingw Qt Creator.
I downloaded the code of Qt Creator, and I tried to compile with Qt Creator, but I get an error message. (*** Multiple target patterns. Stop.)

Do not know if I compile the project directly com mingw Qt Creator, but not like this is done.

Which is not the solution to generate and load plugins without the need for VC + +.

As much as I read in the forums, there are many different answers, but none conclusive.

Qt Creator, it seems a good tool for programming with C + +, but when I use other plugins or dll, I can not move forward.

I would appreciate any respons
Thank you

Report

kolloid

7 years ago

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

Report

C

tnq

7 years ago

Thanks for bug report. Fixed version uploaded.

Report

7 years ago

v0.1.1 - static const member init fix (for Visual Studio 2005)
v0.1.0 - initial release

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.1.1
updated Jan 19 2010
added Jan 15 2010
downloads today
0
page views today 9