Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. C++ application with QML UI
Forum Updated to NodeBB v4.3 + New Features

C++ application with QML UI

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmlc++widget
2 Posts 2 Posters 578 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TMJJ001
    wrote on last edited by
    #1

    Dear all,

    I have a new project where I need to make a OPC UA client. This OPC UA client needs to connect with a local OPC UA server.
    In the past I always used a widget application to make my app. Now they asked me to create a "modern" UI.

    I think this is a good time to program for the first time a QML ui.
    The data processing I would like to make in c++ and just send the data which needs to be visualized to the QML ui.

    I already started with some basics. Now I have no idea what is the best to continue.

    So:

    1. I created a widget application.
    2. In this widget application I created a QQuickwidget (I don't think this is the way to do it!)
    3. I created they ui with QML code
    4. I load the ui into the QQuickwidget.

    Is this the correct way to do so?
    If not, could you please give me a hand?

    second, how to connect the buttons and textboxes I have created in the QML ui with the data I have processed in C++?

    I already searched the internet, but can't get my head arround it.

    Thanks in advance,
    Kind regards

    jsulmJ 1 Reply Last reply
    0
    • T TMJJ001

      Dear all,

      I have a new project where I need to make a OPC UA client. This OPC UA client needs to connect with a local OPC UA server.
      In the past I always used a widget application to make my app. Now they asked me to create a "modern" UI.

      I think this is a good time to program for the first time a QML ui.
      The data processing I would like to make in c++ and just send the data which needs to be visualized to the QML ui.

      I already started with some basics. Now I have no idea what is the best to continue.

      So:

      1. I created a widget application.
      2. In this widget application I created a QQuickwidget (I don't think this is the way to do it!)
      3. I created they ui with QML code
      4. I load the ui into the QQuickwidget.

      Is this the correct way to do so?
      If not, could you please give me a hand?

      second, how to connect the buttons and textboxes I have created in the QML ui with the data I have processed in C++?

      I already searched the internet, but can't get my head arround it.

      Thanks in advance,
      Kind regards

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @TMJJ001 said in C++ application with QML UI:

      I created a widget application.

      Create a QML application instead. You will write your UI with QML/QtQuick and logic in C++.
      See https://doc.qt.io/qt-5/qtqml-cppintegration-topic.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved