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. QDomElements by ID
Forum Update on Monday, May 27th 2025

QDomElements by ID

Scheduled Pinned Locked Moved General and Desktop
qdomelementsvgqtxmlqdomdocument
1 Posts 1 Posters 951 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
    M.A.Z.
    wrote on 23 Jun 2015, 14:15 last edited by
    #1

    Hello Forum,

    I stored an svg file in a QDomDocument and I want to manipulate some elements (more precisely: setting visibility attributes). I know the IDs of the elements I want to manipulate.

    Now, I was quite happy when I saw that there was a QDomDocument::elementById() function... until I read that this function hasn't been implemented and does, in fact, nothing.

    Then, I thought to myself: "Ok, no Problem, I will parse the document's elements for the elements with the IDs I am looking for, myself". The Problem, though, is that I couldn't find any functions that let me query element's (or node's) IDs, at all.

    So, the questions are: Is there any way to identify elements (or nodes) by ID in the QtXml context? How can I get hold of the elements I am looking for, using the IDs?

    Thanks in advance!

    1 Reply Last reply
    0

    1/1

    23 Jun 2015, 14:15

    • Login

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