-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (5) .- Knowledge Base  . 

QPropertyEditor

   0.3  

Qt Widget

Score 83%
QPropertyEditor
zoom


Link:  http://
Minimum required   Qt 4.x
Downloads:  4584
Submitted:  Oct 30 2007
Updated:  Sep 28 2008

Description:

This small library is used to be a lightweight method to allow the graphical editing of properties defined via the Q_PROPERTY macro. It can be easily extended for custom datatypes.

In the zip archiv a Sample Application is included that contains a custom property for a vector with three floating point values.

Feedback is welcome!




Changelog:

v 0.1. support for basic datatypes
v 0.2. support for dynamic properties (that don't start with a '_')
v 0.3 support for enums (thanks to banal from qt-apps.org for this enhancement)




LicenseLGPL
(Source Code for Windows and Linux)
Send to a friend
Subscribe
Other  Apps  from Volki
Report inappropriate content



goto page: prev   1  2 

-

 Immediate update is bad

 
 by muenalan on: Apr 8 2009
 
Score 50%

Thanks for a such nice widget!

Q: Can we add a setting to update only once the editing is finshed; not during editing. After ENTER, for a QLineEdit, for instance.

Background: During editing a property value the underlaying m_property member of the QObject class gets *immediately* updated (not just after finishing the edit). So when writing an email, for instance, its also written during entering the string, while the email is half correct/valid.

PROBLEM: My class checks for valid emails, and voila throws exeptions. Of course, there are more cases where half-correct input is not ok.


Thanks+Cheers,
mu


Reply to this

-

 Re: Immediate update is bad

 
 by muenalan on: Apr 26 2009
 
Score 50%

muenalan: ok, then here is a patch for a start.

Property.cpp.editingFinishedInsteadOfsetValue-DIFFPATCH
49,70d48
< void Property::editingFinished()
< {
< if( QObject::sender() )
< {
< QVariant value_editor;
<
< switch(value().type())
< {
< case QVariant::Int:
< value_editor = static_cast<QSpinBox *>( QObject::sender() )->value();
< break;
< case QMetaType::Float:
< case QVariant::Double:
< value_editor = static_cast<QDoubleSpinBox *>( QObject::sender() )->value();
< break;
< }
<
< if (m_propertyObject)
< m_propertyObject->setProperty(qPrintable(objectName()), value_editor);
< }
< }
<
91d68
<
96,103c73
<
< // MUE: In 0.3 valueChanged(..) was setting the property upon each character change, even when
< // the input was not meant to be set.
< // Changed to editingFinished() (see QAbstractSpinBox docs) and introduced corresponding slot into
< // this class.
<
< // connect(editor, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
< connect(editor, SIGNAL(editingFinished()), this, SLOT(editingFinished()));
---
> connect(editor, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
110,111c80
< // connect(editor, SIGNAL(valueChanged(double)), this, SLOT(setValue(double)));
< connect(editor, SIGNAL(editingFinished()), this, SLOT(editingFinished()));
---
> connect(editor, SIGNAL(valueChanged(double)), this, SLOT(setValue(double)));

Property.h.editingFinishedInsteadOfsetValue-DIFFPATCH
140a141,142
> void editingFinished();
>


Reply to this

-

 Re: Re: Immediate update is bad

 
 by Volki on: Apr 26 2009
 
Score 50%

It might be better for strings to have the property not set immediately, but on the other hand it can be useful to have immediate updates for example when changing the position property of some graphics. In this case I want to set the change immediately after changing the value.


Reply to this

-

 Re: Re: Re: Immediate update is bad

 
 by muenalan on: Apr 26 2009
 
Score 50%

You're right, but as it happens for me it 80% editingFinished was correct/intuitive. setValue/editingFinished should be likely configurable on a per-property basis. Let's think about it.


Reply to this

-

 compilation error

 
 by sajis997 on: May 9 2009
 
Score 50%

Hello Volki,

I have already installed your component.

My system crashed couple of days ago and i reinstalled everything.

While compiling this component i have the following error:

INT_MAX not declared

I have queries regarding that before as well and some in forum said that

#include <limits> has defined that


But i am still having that error


Any hint would be of great help


Regards
Sajjad


Reply to this

-
.

 Spaces in displayed name

 
 by jong on: May 12 2009
 
Score 50%

Hi,
I cannot manage to set a name for a property. It is possible to do it with the class as the example shows it however I didn't find a way to change the displayed name of a property, looking at the code didn't help me.


Reply to this

-

 Re: Spaces in displayed name

 
 by Volki on: May 20 2009
 
Score 50%

You can use underscores to insert spaces


Reply to this

-
.

 About License

 
 by jacmoe on: Aug 27 2009
 
Score 50%

Hi.
Great library. :)

I noticed that the license for the code is LGPL, but the headers mention GPL.
Is that an error?
Is it LGPL or GPL ?

I changed the license headers in my copy to the following:

// *************************************************************************************************
//
// QPropertyEditor v 0.3
//
// --------------------------------------
// Copyright (C) 2007 Volker Wiendl
// Acknowledgements to Roman alias banal from qt-apps.org for the Enum enhancement
//
//
// The QPropertyEditor Library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by the Free Software
// Foundation; either version 2 of the License, or (at your option) any later
// version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License along with
// this program; if not, write to the Free Software Foundation, Inc., 59 Temple
// Place - Suite 330, Boston, MA 02111-1307, USA, or go to
// http://www.gnu.org/copyleft/lesser.txt.
//
// *************************************************************************************************


I hope it's alright with you.
Otherwise, you need to change the entry so that the right license is shown.

Kind Regards

Jacob 'jacmoe' Moen


Reply to this

-

 Re: About License

 
 by Volki on: Nov 17 2009
 
Score 50%

LGPL is fine


Reply to this

-

 Using property editor

 
 by starapple on: Mar 26 2010
 
Score 50%

Hi, is this a widget that works with the qtpropertybrowser dll? If so, how is it implemented?

Should it be built/made? I tried to make it and got this message: error: 'INT_MAX' was not declared in this scope Property.cpp:69
D:/Qt/QPropertyEditor_0.3/src/QPropertyEditor/Property.cpp

I executed the dos batch file in the Doc folder but it did nothing.

Thanks for your help.


Reply to this

-

 Re: Using property editor

 
 by Volki on: Jun 15 2010
 
Score 50%

It's not using the qtpropertybrowser dll

You have to include limits.h if you couldn't find INT_MAX. The docs batch file only works if you have doxygen installed and available through your PATH environment settings


Reply to this

-

 populating a structure array

 
 by phamtv on: Jan 31 2011
 
Score 50%

Can you populate a structure array? If so, is there an example to demonstrate this?


Reply to this

-

 Re: populating a structure array

 
 by phamtv on: Feb 1 2011
 
Score 50%

After looking at my message, I should provide you with some details. I am trying to populate a simple class that contains a structure array of registers. I am hoping to come up with a property grid that comes up with a formatted structure as follow:

Class Name
...Registers
->...0x01-Register 1...........0xFF
->->... Bit 1 - Some thing.....0x01
->->... Bit 2 - Some thing.....0x00
->...0x02-Register 2...........0xAB
->->... Bit 1 - Some thing.....0x01
->->... Bit 2 - Some thing.....0x00
->->... Bit 3 - Some thing.....0x00

etc..

Thanks!


Reply to this

-

 Re: populating a structure array

 
 by phamtv on: Feb 1 2011
 
Score 50%

After looking at my message, I should provide you with some details. I am trying to populate a simple class that contains a structure array of registers. I am hoping to come up with a property grid that comes up with a formatted structure as follow:

Class Name
...Registers
->...0x01-Register 1...........0xFF
->->... Bit 1 - Some thing.....0x01
->->... Bit 2 - Some thing.....0x00
->...0x02-Register 2...........0xAB
->->... Bit 1 - Some thing.....0x01
->->... Bit 2 - Some thing.....0x00
->->... Bit 3 - Some thing.....0x00

etc..

Thanks!


Reply to this

goto page: prev   1  2 

Add commentBack






-
Cool Sites
QtitanDataGrid Advanced Grid for Qt

 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About Qt-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2006-2014 Qt-Apps.org Team  
All rights reserved. Qt-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
Qt is a trademarks of Nokia