• 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
  • RoutingContainer

RoutingContainer Class

The RoutingContainer enables relative routing in widget children More...

Header: #include <RoutingContainer>
Inherits: RoutingContainerBase and
  • List of all members, including inherited members

Properties

  • cdpFullTargetRouting : const QString
  • cdpTargetRouting : QString

Public Functions

RoutingContainer(QWidget *parent = nullptr)
  • 3 public functions inherited from RoutingContainerBase

Public Slots

virtual void setCdpTargetRouting(const QString &routing) override

Additional Inherited Members

  • 3 static public members inherited from RoutingContainerBase

Detailed Description

The RoutingContainer enables relative routing in widget children

Adding routing to the cdpTargetRouting property in the RoutingContainer makes it possible to use relative routings in child widget properties. In the child widget routing properties, a relative routing is started using a dot (.) character. To illustrate this with an example, imagine having a container with widgets showing the configuration of a Sine component. If the container is configured with cdpTargetRouting set to Application.Sine, a bar that is to show the Sine amplitude can be configured with .Amplitude.Value (the .Value part is added automatically). The full routing set on the bar would then resolve to Application.Sine.Amplitude.Value.

The main reason to use the RoutingContainer is to make reusable GUI elements that target control system objects with a fixed structure. Copying such GUI elements will only require setting the target routing on the RoutingContainer.

The RoutingContainer supports relative routing when placed inside other RoutingContainers. Widget children can use both relative and absolute paths in their routing properties.

The cdpTargetRouting is provided as a slot, enabling runtime target changes via Qt signals. Alternatively, the developer can add the dynamic routing property cdpTargetRoutingRouting for direct control, allowing real-time adjustments from the control system.

Property Documentation

cdpFullTargetRouting : const QString

This property holds the context routing when the cdpTargetRouting contains relative routing.

cdpTargetRouting : QString

This property holds the target routing that will be used as base for relative routing in child widget properties.

Access functions:

virtual void setCdpTargetRouting(const QString &routing) override

Member Function Documentation

RoutingContainer::RoutingContainer(QWidget *parent = nullptr)

Default constructs an instance of RoutingContainer.

[override virtual slot] void RoutingContainer::setCdpTargetRouting(const QString &routing)

Reimplemented from RoutingContainerBase::setCdpTargetRouting().

Sets the target routing that will be used as base for relative routing in child widget properties.

This method, exposed as a Qt slot, allows the user to configure the target routing for the container widget and propagate it to all of its child widgets. By connecting a signal to this slot, the routing can be dynamically adjusted at runtime, ensuring that all child widgets follow the specified routing pattern.

Note: Setter function for property cdpTargetRouting.

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