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

QuickWidget Class

The QuickWidget loads QML and supports language switching in runtime More...

Header: #include <QuickWidget>
  • List of all members, including inherited members

Public Functions

QuickWidget(QWidget *parent = nullptr)

Protected Functions

void changeEvent(QEvent *event)

Detailed Description

The QuickWidget loads QML and supports language switching in runtime

To ensure that texts get retranslated in runtime, the QML needs to add cdpTr.emptyString to translatable strings:

Text { text: qsTr("Hello world!") + cdpTr.emptyString }

The QML can also change the language using the cdpTr object:

Text {
  text: "Click to set english language!"
  MouseArea {
    anchors.fill: parent
    onPressed: { cdpTr.setTranslation("english"); }
  }
}

Member Function Documentation

QuickWidget::QuickWidget(QWidget *parent = nullptr)

Default constructs an instance of QuickWidget.

[protected] void QuickWidget::changeEvent(QEvent *event)

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