Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epasveer/qcolorbutton
QColorButton is a widget to show an initial color and choose a different color when it's double-clicked.
https://github.com/epasveer/qcolorbutton
qt qt-gu qt-widget qt-widgets
Last synced: 3 months ago
JSON representation
QColorButton is a widget to show an initial color and choose a different color when it's double-clicked.
- Host: GitHub
- URL: https://github.com/epasveer/qcolorbutton
- Owner: epasveer
- License: mit
- Created: 2022-01-01T17:01:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T20:04:34.000Z (about 3 years ago)
- Last Synced: 2023-03-04T00:25:40.305Z (almost 2 years ago)
- Topics: qt, qt-gu, qt-widget, qt-widgets
- Language: C++
- Homepage:
- Size: 75.2 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
QColorButton
============QColorButton is a widget to show an initial color and choose a different
color when it's double-clicked.There's an api to set the initial color for QColorButton and retrieve its
new color.Copy QColorButton.ui, QColorButton.h, QColorButton.cpp, QColorSwatch.h, QColorSwatch.cpp to your project.
Make sure your build system does auotmatic creation of moc files from the .ui file.ScreenShot
==========Running the test program will initially show a window with an initial color.
Red in the case of the test program.![](images/qcolorbutton.png)
Double click the red area to bring up the standard color dialog.
![](images/qcolorbutton_with_dialog.png)
Selecting OK after choosing a different color will result in the red
area changing to the color you chose.![](images/qcolorbutton_result.png)
Building QColorButton
=====================Download the latest code using 'clone'.
% git clone https://github.com/epasveer/QColorButton
Setup cmake and build
% cd QColorButton/src
% cd build
% cmake ..% make
Install it (or not), which will usually copy it to /usr/local/bin.
May need root access.% cd QColorButton/src/build
% sudo make installLICENSE
=======QColorButton source code is licensed under the MIT License.