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. Push only the X component from a QPolygonF

Push only the X component from a QPolygonF

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 530 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.
  • A Offline
    A Offline
    avmg
    wrote on last edited by
    #1

    Hi,

    My question is if it's possible to push_front or push_back only one component of a QPolygonF. I have two arrays that conform multiple points. When I update the values from the array, only one component is needed to updated and the other keeps same, so instead to make a long loop adding the points like "points << ...", i just want to push the new data in only one of the two arrays.

    In my knowledge, the problem is that this operations (push and pop) is for both elements (x and y) of the point...

    Thanks so much,
    Andres

    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