Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sort Q3D Scatter Data Array that contains many QVector3D.
Qt 6.12 LTS is out! See what's new in the release blog

Sort Q3D Scatter Data Array that contains many QVector3D.

Scheduled Pinned Locked Moved Unsolved General and Desktop
sorting
1 Posts 1 Posters 467 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.
  • E Offline
    E Offline
    Elthon
    wrote on last edited by Elthon
    #1

    The Q3D Scatter Data Array consist of many QVector3D 3Dvectors. Each of the QVector3D in the Array is a 3D vector that consist of (x,y,z) value. I would like to arrange the Array which contains the 3D vectors, in order of smallest value of Z to largest and if there is replicate/same value of Z then arrange the smaller X value first. If both Z and X value the same then the order doesn't matter.

    Can someone please enlighten me, will appreciate your help so much! thanks.

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