chooseColor

chooseColor(objectOrName, htmlRGBvalue)

This function is used to simulate user interaction with an HTML color field element through which the user can choose a color. The objectOrName must be recognized as a HTML_ColorField Class or a catchable exception will be raised. The htmlRGBvalue must be a string containing an HTML color value of the form "#RRGGBB" where each component (RR for red, GG for green, and BB for blue) is a two-digit hexadecimal number in the range 00 to FF representing the component's color value. (See, for example, W3School's HTML colors page.)

See Color Picker Support for how to add support for custom color pickers.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

Search Results