Skip to content
Qt basd Color Picker with popup menu
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake Change cmake config file name Sep 7, 2018
example Add namespace to all classes Sep 18, 2018
icons Rename resources file Sep 18, 2018
include/kColorPicker Dont export and import symbols when building on windows Nov 23, 2018
src Add resource loading for static lib Oct 29, 2018
tests Replace CMAKE_XXX_DIR with CMAKE_CURRENT_XXX_DIR Oct 25, 2018
.travis.yml Set only icon size when button was set with fixedSize Sep 8, 2018
CMakeLists.txt Add flag for runing on and of example build Nov 20, 2018 Dont export and import symbols when building on windows Nov 23, 2018

kColorPicker Build Status

QToolButton with color popup menu with lets you select a color. The popup featues a color dialog button which can be used to add custom colors to the popup menu.

Version 0.0.1


Building from source

  1. Get latest release from GitHub by cloning the repo:
    $ git clone
  2. Change to repo directory:
    $ cd kColorPicker
  3. Make new build directory and enter it:
    $ mkdir build && cd build
  4. Create the makefile and build the project:
    $ cmake .. && make
  5. Install shared library (not required when only using the example):
    $ sudo make install
  6. Run the example application:
    $ ./example/kColorPicker-example

Shared vs Static

You can either build the project as shared library by providing the flag -DBUILD_SHARED_LIBS=ON to cmake or -DBUILD_SHARED_LIBS=OFF to build as static library. On Windows we currently can only build as static library.

Integrate library in project

  1. Let cmake find the shared library, optionally with version
    find_package(kColorPicker ${KCOLORPICKER_MIN_VERSION} REQUIRED)

  2. Link the library with your application
    target_link_libraries(myApp kColorPicker)

You can’t perform that action at this time.