An action containing a color widget, which can be embedded into a menu.  
 More...
#include <qgscolorwidgets.h>
|  | 
| void | colorChanged (const QColor &color) | 
|  | Emitted when a color has been selected from the widget. 
 | 
|  | 
An action containing a color widget, which can be embedded into a menu. 
- See also
- QgsColorWidget 
Definition at line 301 of file qgscolorwidgets.h.
◆ QgsColorWidgetAction()
      
        
          | QgsColorWidgetAction::QgsColorWidgetAction | ( | QgsColorWidget * | colorWidget, | 
        
          |  |  | QMenu * | menu = nullptr, | 
        
          |  |  | QWidget * | parent = nullptr | 
        
          |  | ) |  |  | 
      
 
 
◆ colorChanged
  
  | 
        
          | void QgsColorWidgetAction::colorChanged | ( | const QColor & | color | ) |  |  | signal | 
 
Emitted when a color has been selected from the widget. 
- Parameters
- 
  
  
 
 
◆ colorWidget()
Returns the color widget contained in the widget action. 
Definition at line 317 of file qgscolorwidgets.h.
 
 
◆ dismissOnColorSelection()
  
  | 
        
          | bool QgsColorWidgetAction::dismissOnColorSelection | ( |  | ) | const |  | inline | 
 
 
◆ setDismissOnColorSelection()
  
  | 
        
          | void QgsColorWidgetAction::setDismissOnColorSelection | ( | bool | dismiss | ) |  |  | inline | 
 
Sets whether the parent menu should be dismissed and closed when a color is selected from the action's color widget. 
- Parameters
- 
  
    | dismiss | set to true(default) to immediately close the menu when a color is selected from the widget. If set tofalse, the colorChanged signal will be emitted but the menu will stay open. |  
 
- See also
- dismissOnColorSelection() 
Definition at line 327 of file qgscolorwidgets.h.
 
 
The documentation for this class was generated from the following files: