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. How to transfer data between tabs
QtWS25 Last Chance

How to transfer data between tabs

Scheduled Pinned Locked Moved Unsolved General and Desktop
tabviewtabsqmlqtcreator
2 Posts 2 Posters 1.1k 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.
  • M Offline
    M Offline
    MP10
    wrote on 3 Nov 2015, 02:00 last edited by
    #1

    Hi All,

    Firstly, I am new to Qt tools. I am using Qt Creator for developing an desktop application. I am developing UI for this app using QML. I am using Qt 5.

    In the UI for the app I have certain parameters being displayed with real-time values. I am able to receive data on UI from external system and I am able to plot it in real time, as well. But currently I am displaying everything in single window. I am trying to use tabs for better representation. I want to display the numerical values in Tab1 and graph for the selected value in Tab2. But I am unable to implement this, so far. Please let me know if there is any possible solution to implement this type of UI.

    I tried using TabView but it just plots the value fields and the plotting window in separate tabs. It does not show graph for the continuously varying values in Tab1 on selecting any of the values.

    Please let me know if anyone knows how to implement this. Any help is appreciated!

    Thanks,
    MP

    P 1 Reply Last reply 3 Nov 2015, 10:03
    0
    • M MP10
      3 Nov 2015, 02:00

      Hi All,

      Firstly, I am new to Qt tools. I am using Qt Creator for developing an desktop application. I am developing UI for this app using QML. I am using Qt 5.

      In the UI for the app I have certain parameters being displayed with real-time values. I am able to receive data on UI from external system and I am able to plot it in real time, as well. But currently I am displaying everything in single window. I am trying to use tabs for better representation. I want to display the numerical values in Tab1 and graph for the selected value in Tab2. But I am unable to implement this, so far. Please let me know if there is any possible solution to implement this type of UI.

      I tried using TabView but it just plots the value fields and the plotting window in separate tabs. It does not show graph for the continuously varying values in Tab1 on selecting any of the values.

      Please let me know if anyone knows how to implement this. Any help is appreciated!

      Thanks,
      MP

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 3 Nov 2015, 10:03 last edited by
      #2

      Hi @MP10 and Welcome,

      Have a look at the following:

      • http://doc.qt.io/qt-4.8/qmlevents.html
        This is similar to Qt C++ signals and slots mechanism and allows transfer of data.
      • http://doc.qt.io/qt-5/qtqml-syntax-propertybinding.html
        This explains how variables/properties can be defined in QML and binded to other properties on same or other pages so that when one changes the other is updated too. In your case you can try binding the numerical values on Tab1 with similar properties on Tab2. Then you can use the corresponding event handler for these properties to update the graph. The event handlers are triggered when a property's value changes.

      157

      1 Reply Last reply
      0

      1/2

      3 Nov 2015, 02:00

      • Login

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