[kde-guidelines] Custom controls (was Discouraging use of custom widget replacements)

Heiko Tietze heiko.tietze at user-prompt.com
Wed Jul 10 07:29:14 UTC 2013


Viewing and Navigation: Complex views
* If you really need to create your own widget follow the guidelines for custom controls. 

{{Construction}}
== Purpose ==

== Examples ==

== Guidelines ==
* Do you really need a custom widget? Check whether an existing widget cannot be used instead.
* It is strongly recommended to consult the usability team (https://git.reviewboard.kde.org/groups/usability/) 
* Create interaction by following natural design. Find the appropriate metaphor and define a skeuomorph interface.
* Make sure your new widget:
** Resizes correctly
** Handles right-to-left setups
** Works well with different color schemes
** Looks as close to native as possible (use QStyle or QStylePainter to draw elements)
** Is based on an existing widget rather than a plain QWidget if possible
* If possible, consider making your widget reusable enough so that it can be integrated in standard widgets
== Implementation ==


(Just to put all idea together in one place. There are a lot of aspects to add.)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-guidelines/attachments/20130710/8460161c/attachment.html>


More information about the kde-guidelines mailing list