QSwitch

Qt Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
7.5
Description:

QSwitch is a binary switch custom widget plugin for Qt Designer 4.X
More details on www.sereno-online.com
Last changelog:

11 years ago

Added antialiasing

Alpix

3 years ago

...zip is no longer available

Report

Badam

3 years ago

Hello community.
Even if this very very usefull plugin haven't been updated since a while, I'll post here the method to make it compatible with Qt5 (I made it with Qt 5.4.2). It takes me quite long time to make it running, so if it can be useful for someone...


In qswitchplugin.pro, change CONFIG line by :
QT += widgets designer
CONFIG += plugin release

In qswitchplugin.h, between Q_OBJECT and Q_INTERFACES, add :
Q_PLUGIN_METADATA(IID "org.qt.QDesignerCustomWidgetInterface")

In qswitchplugin.cpp, before #include <QtPlugin>, add :
#include <QtDesigner>
AND comment the last line :
Q_EXPORT_PLUGIN2(customwidgetplugin, QSwitchPlugin)

In qswitch.h, remove ';' add the end of each Q_PROPERTY line.

Report

pospiech

9 years ago

The .pro file must include the following

CONFIG += build_all

to build not only the debug version.

Also there is no readme file or examples which explains how to use the code.

Report

MarkoSan

11 years ago

Does anyone have a wav of that cool mechanical sound produced when the switch, which is represented by this widget, state is switched?

Report

C

qphoton

11 years ago

Nice Idea!
I mean to add sounds to widgets.
I'll try to do something for this issue.
bye
paolo

Report

ziuchkov

11 years ago

Something's broken on the voting. I voted "good" and the rating score went down. I even double-checked the location in my address bar, and confirmed I did indeed vote "good". I swear this has happened a couple other times in the past few days too. Sorry =/.

Report

C

qphoton

11 years ago

:-)

Report

11 years ago

Added antialiasing

12345678910
3
product-maker Alpix Feb 15 2016 8 great
product-maker Badam Oct 07 2015 8 great
product-maker Deusdies Jan 30 2012 8 great
product-maker Count:29 Rating: 7.45
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.3
updated Jul 25 2010
added Dec 27 2007
downloads today
0
page views today 1
System Tags