• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • GUI - CDP Widgets
  • CDPBaseWidget

CDPBaseWidget Class

The CDPBaseWidget is a base class that provides interface callbacks that can be used by inheriting widgets. More...

Header: #include <CDPBaseWidget>
Inherits: CDPBaseControlVisible,
Inherited By:

CDPBaseCheckBox, CDPBaseContainer, CDPBaseLoadingIndicator, CDPBaseMeter, CDPBasePicture, CDPBaseTickMarks, and CDPBaseToggleButton

  • List of all members, including inherited members

Properties

  • cdpVisibleRouting : const QString
  • lockWidgetStyle : bool
  • opaquePaintEvent : bool
  • pushRoutables : const QStringList
  • visible : const bool
  • widgetStyle : int

Public Functions

CDPBaseWidget(QWidget *parent = 0)
virtual ~CDPBaseWidget()
virtual void forceWidgetStyle(int style)
virtual bool lockWidgetStyle()
virtual bool opaquePaintEvent()
virtual const QStringList &pushRoutables() const
virtual void setIQtCDPPointer(IQtCDP *pIQtCDP)
virtual void setLockWidgetStyle(bool enable)
virtual void setOpaquePaintEvent(bool enable)
int widgetStyle()
  • 4 public functions inherited from CDPBaseControlVisible

Public Slots

virtual void forceWidgetStyle(double style)
virtual void handleVisible(double visible)
virtual void hideWidget()
virtual void setInCommand(bool cmd)
virtual void setSmoothPixmap(bool smooth)
virtual void setTimeOffsetSecs(double offsetInSec)
virtual void setWidgetFont(const QString &font)
virtual void setWidgetStyle(int style)
virtual void setWidgetTheme(const QString &theme)
virtual void showWidget()

Signals

void pushRoutablesChanged(const QStringList &pushers)

Additional Inherited Members

  • 1 protected function inherited from CDPBaseControlVisible

Detailed Description

The CDPBaseWidget is a base class that provides interface callbacks that can be used by inheriting widgets.

The CDPBaseWidget is inherited by most of the widgets. This is not a plugin widget for stand-alone use, but a class that provides global callbacks such as, theme, font, time offset and so on, for the widgets that inherits the class (or the ICDPWidgetBase interface itself).

Note that not all widgets implements these features though inheriting CDPBaseWidget.

Property Documentation

cdpVisibleRouting : const QString

This property holds the full path of the signal/parameter to control visible property.

Note: Values not equal to 1 are considered false.

See also visible.

lockWidgetStyle : bool

This property holds whether the widget style can be changed or not.

Access functions:

virtual bool lockWidgetStyle()
virtual void setLockWidgetStyle(bool enable)

See also widgetStyle.

opaquePaintEvent : bool

This property holds whether the widget is transparent.

Set true to optimize painting when having no transparency in widget graphics This property should be set true on all widgets that does not require transparency. It will prevent Qt from painting widgets behind current widget and thus increase performance.

Access functions:

virtual bool opaquePaintEvent()
virtual void setOpaquePaintEvent(bool enable)

pushRoutables : const QStringList

Access functions:

virtual const QStringList &pushRoutables() const

Notifier signal:

void pushRoutablesChanged(const QStringList &pushers)

visible : const bool

This property holds whether to show or hide the widget.

widgetStyle : int

This property holds the widget style to use in the svg file (will only have effect if the svg file provides styles).

Access functions:

int widgetStyle()
virtual void forceWidgetStyle(int style)
virtual void forceWidgetStyle(double style)

See also lockWidgetStyle.

Member Function Documentation

CDPBaseWidget::CDPBaseWidget(QWidget *parent = 0)

Default constructs an instance of CDPBaseWidget.

[virtual] CDPBaseWidget::~CDPBaseWidget()

Destroys the instance of CDPBaseWidget. The destructor is virtual.

[virtual slot] void CDPBaseWidget::handleVisible(double visible)

[virtual slot] void CDPBaseWidget::hideWidget()

[virtual] void CDPBaseWidget::setIQtCDPPointer(IQtCDP *pIQtCDP)

[virtual slot] void CDPBaseWidget::setInCommand(bool cmd)

[virtual slot] void CDPBaseWidget::setSmoothPixmap(bool smooth)

[virtual slot] void CDPBaseWidget::setTimeOffsetSecs(double offsetInSec)

[virtual slot] void CDPBaseWidget::setWidgetFont(const QString &font)

[virtual slot] void CDPBaseWidget::setWidgetStyle(int style)

See also widgetStyle().

[virtual slot] void CDPBaseWidget::setWidgetTheme(const QString &theme)

[virtual slot] void CDPBaseWidget::showWidget()

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top