Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to draw/plot a Heatmap shaped as a cone using Qt Quick/Open gl
Forum Updated to NodeBB v4.3 + New Features

How to draw/plot a Heatmap shaped as a cone using Qt Quick/Open gl

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 473 Views 1 Watching
  • 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.
  • VeekoV Offline
    VeekoV Offline
    Veeko
    wrote on last edited by
    #1

    Hello, I hope everyone is doing great.

    I am new to Qt, so I am still experiencing stuff and recolting informations, but i am quite blocked and dont know where to find the answers and ressources i need to resolve my problem.

    My problem is the following:

    I have a program in LabView that allows you to display a cone heatmap graph. It use two 2D array of values for each X/Y point ( which is basically used to draw the cone's shape and also another 2D array for the value of each point (if the value is high, the point will turn to the black color, if it is low, it will turn into a blue one). This is how it looks like:

    b88a066c-5692-4277-98a6-6b0cab3694af-image.png

    With arrays looking like this :

    a5b8c1e4-ba8e-42ac-ba4b-e545933135b3-image.png

    My mission is to reproduce the same result but in a Qt Android app.

    I already did some work and came with this result :

    b4d62f8d-8cc9-4c1e-88f2-b6e45cad2b94-image.png

    But there is few problems :

    • The first one is that the QImage and Pixmap in which i draw each pixel dont appear in my android emulator on qt, it just shows a totally black picture which is quite ambarassing since i want this to work on android.

    • The second is that i don't use the two txt file in which i store the two 2D Array for X and Y positions to draw the cone. I only use the amplitude values 2D array to get the red for each point and i don't know how could do that.

    • Ultimately the final problem is about how i draw this image : Let me explain, i draw the color of each one of the pixel on the Image, that cause a problem since i will later draw on a cone and it will have, I believe, some space for the pixel in the cone bottom. I was wondering that maybe Qt Quick must have some tools to do partially what i want to do, since it works with OpenGl which is also used for the labView program

    I remind you that for now i'm not using Qt quick, but just some basic Qt C++ program with a HeatMap class implementation.

    To be honest, I searched everywhere and pratically read every similar posts ( such as this one : https://forum.qt.io/topic/108057/plot-heat-map-using-qt/14 who was really useful), but I still don't know what i need to learn and use (I tried qwt, many user's libraries such as this one : http://jkriege2.github.io/JKQtPlotter/index.html, but for some reasons they don't work when i tried their exemples, or don't work with my android emulator).

    If you have any advices or solutions for my problems i would be really thankful.
    Also If you have questions or want more details I can explain it in a more deeper way

    Thank you in advance !

    1 Reply Last reply
    0

    • Login

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