QLed
Qt Widgets
Score 73%
Description:

QLed is a Led custom widget plugin for Qt Designer 4.x
It requires Qt library 4.x

It allows to choose among Circle, Square, Triangle, RoundRect shapes and also allows to choose among Red,Green,Yellow,Orange,Purple,Blue on-colors. Off color is Grey.
Last changelog:

9 years ago

Version 0.6.2
Bug fixing and improvement.

Version 0.6.1
Bug fixing.

Version 0.6.0
A simple example is provided. Package QLed-0.6.0 contains a new example directory

Version 0.5.1
Some minor changes. Code readability improvement.

Version 0.5.0
This version allows to choose among Circle, Square, Triangle, RoundRect shapes and also allows to choose among Red,Green,Yellow,Orange,Purple,Blue on-colors. Off color is Grey.

Version 0.5.0 beta
QLed shape does not use graphics primitives (line, circle, gradient...) any more. An SVG file is used instead.
This version is beta, I'm working on the source code to improve it and to add new shapes.

Version 0.4.0

Improvements:
-Modified color management. Now the color (QColor) is property for Qt Designer.



-------------------
Version 0.3
Added antialiasing

ogre70

8 years ago

Hello!
I have a problem with the qledplugin.
I put this widget in my application with Qt Designer.

When I compile and link my apllication, I found the following error : undefined reference to QLed::QLed(QWidget*)

Any idea ?

Thanks!

Bye

Report

C

qphoton

8 years ago

It seems that the library is not linked together.

Report

frix

8 years ago

Good day,
You'll get this problem if you haven't specified in the .pro file or your application that it should link against the specific plugin.

Just add to your .pro file:
LIBS += -lqledplugin

This should remove the link error in:
Win32: undefined reference to `_imp___ZN4QLedC1EP7QWidge`

Linux: Undefined reference to `QLed::QLed(Widget*)`

Also, the locations used by QT Creator and the compiler may be different.
It seems that {QT_base_path}/qt/plugins/designer is used by QT Creator and that
{QT_base_path}/qt/lib is used by the linker during compile time.
I just copied qledplugin.dll to both locations and that solved the problem for me.

Also, remember to copy 'qled.h' to {QT_base_path}/qt/include, otherwise you'll get a compiler error: "qled.h: No such file or directory"

Regards,
Frikkie Thirion

Report

philvl

8 years ago

hello,

I like your button for industrial application.

They look like to LabView Style.

You can force your widget to keep a square ratio :
add this in paint event :

int side = qMin(width(),height());
QPainter painter(this);
painter.setViewport((width() - side) / 2, (height() - side) / 2, side, side);

best regards

Report

C

qphoton

8 years ago

Thanks!
paolo

Report

pisser1234

9 years ago

i am searching for exactly that application, but i cannot download it :-(

greetings

Report

yagabey

9 years ago

Hello, how can i port this widget to qtopia core.. I tried to compile it for arm; but i think some classes dont exist for qtopiacore(like QtDesigner/QDesignerExportWidget)

Report

vk3xrt

9 years ago

Excellent Widget!

I have compiled and copied it into "designer/plugins". Designer sees it, and I can place it in dialogs, etc.
When I come to compile my app, it errors saying cannot find "qled.h". Do I need to copy the source code to my app as well? Does the fact I am compiling a static app make a difference?

Thanks, B1.

Report

C

qphoton

9 years ago

I understand the problem.
Your compiler does not find qled.h
I'm organising the widgets into a library and I'm arranging the path for new versions.
Unfortunately, for the moment there is a problem with the header in current widget version. What you can do is simply put the qled.h in a place where your compiler can find it.
Please tell me if this fixes the problem.
Thanx
paolo

Report

cmad

9 years ago

I have a problem with the qledplugin. I integrated this widget in my application with Qt Designer.

But when I compile and link my apllication, I found the following link error : "undefined reference to QLed::QLed(QWidget*)

I do not understand this error because I include the qled.h file in my project folder and set the LD_LIBRARY_PATH variable.

Any idea ?

Thanks by advance.

Report

frix

8 years ago

Good day,
You'll get this problem if you haven't specified in your project .pro file that it should link against the specific plugin.

Just add to your .pro file:
LIBS += -lqledplugin

This should remove the link error in:
Win32: undefined reference to `_imp___ZN4QLedC1EP7QWidge`

Linux: Undefined reference to `QLed::QLed(Widget*)`

Also, the locations used by QT Creator and the compiler may be different.
It seems that {QT_base_path}/qt/plugins/designer is used by QT Creator and that
{QT_base_path}/qt/lib is used by the linker during compile time.
I just compied qledplugin.dll to both locations and that solved the problem for me.

Regards,
Frikkie Thirion

Report

vk3xrt

9 years ago

Excellent Widget!

I have compiled and copied it into "designer/plugins". Designer sees it, and I can place it in dialogs, etc.
When I come to compile my app, it errors saying cannot find "qled.h". Do I need to copy the source code to my app as well? Does the fact I am compiling a static app make a difference?

Thanks, B1.

Report

MakSIm345

9 years ago

How I can add this widget to QT Designer?
I've try:
qmake qledplugin.pro
nmake
nmake install
(nmake - I'm using VC2005)
But then what? I can't see this widget in designer anywhere.
Thank you.

Report

C

qphoton

9 years ago

Hi,
have you set QT in your path?
If it does not work you can copy the dll file in your plugin\designer directory.
Qt Designer looks every dll file in this directory and loads plugins.
good luck!

Report

MakSIm345

9 years ago

Hi.
I have set in PATH ";C:\Qt\4.3.3\bin;", is it what you mean?

The qledplugin.dll is in C:\Qt\4.3.3\plugins\designer folder.

Still I can't find the plugin in Designer toolbox.

Report

C

qphoton

9 years ago

It seems that everything is ok.
Select the Help menu, About plugins item, a dialog box will show you what is the problem.
Please write me the information you have from it.

Report

MakSIm345

9 years ago

Ok, I got it. By default I compile the DLL with "debug" key, so it may be a problem.

quote:
"The plugin 'C:/Qt/4.3.3/plugins/designer/qledplugin.dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows msvc debug full-config".

Report

MakSIm345

9 years ago

Ok, I got it. By default I compile the DLL with "debug" key, so it may be a problem.

quote:
"The plugin 'C:/Qt/4.3.3/plugins/designer/qledplugin.dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows msvc debug full-config".

Report

9 years ago

Version 0.6.2
Bug fixing and improvement.

Version 0.6.1
Bug fixing.

Version 0.6.0
A simple example is provided. Package QLed-0.6.0 contains a new example directory

Version 0.5.1
Some minor changes. Code readability improvement.

Version 0.5.0
This version allows to choose among Circle, Square, Triangle, RoundRect shapes and also allows to choose among Red,Green,Yellow,Orange,Purple,Blue on-colors. Off color is Grey.

Version 0.5.0 beta
QLed shape does not use graphics primitives (line, circle, gradient...) any more. An SVG file is used instead.
This version is beta, I'm working on the source code to improve it and to add new shapes.

Version 0.4.0

Improvements:
-Modified color management. Now the color (QColor) is property for Qt Designer.



-------------------
Version 0.3
Added antialiasing

product-maker Badam Oct 08 2015

product-maker masc4ii May 09 2012

product-maker 9 32

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.6.2
updated Sep 05 2017
added Dec 27 2007
downloads today
0
page views today 11