QLedIndicator

Qt Widgets

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

2
Become a Fan
5.3

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:

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


Ratings & Comments

8 Comments

paulpeter

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

doyal101

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

JohanW

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

astodolski

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.

AERO

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

AERO

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

kolloid

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

tnq

Thanks for bug report. Fixed version uploaded.

Pling
0 Affiliates
Details
license
version 0.1.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

More Qt Widgets from tnq:

QNeedleIndicator
tnq
last update date: 14 years ago

Score 6.1

Other Qt Widgets:

Widget Virtual Keyboard
embitel
last update date: 15 years ago

Score 5.3

Widget Marquee Label
embitel
last update date: 15 years ago

Score 6.1

Widget Color Picker
embitel
last update date: 15 years ago

Score 4.7

QtitanDataGrid advanced Grid for Qt
BigZ1
last update date: 7 years ago

Score 5.7

QtitanRibbon Microsoft RibbonUI and Office Styles for Qt
BigZ1
last update date: 7 years ago

Score 5.2

Q7TaskBar
QDevelopper
last update date: 13 years ago

Score 6.1