Results 1 to 2 of 2

Thread: Dom Model

  1. #1
    Join Date
    Feb 2010
    Qt products
    Qt4 Qt/Embedded
    Unix/X11 Windows

    Default Dom Model

    I've been seeing the Simple Dom Model Example and I realized that I can use it in my project with a few changes. I want to show the content of a SVG file in a tree, just as does the example, but I need to show the elements attributes separate.
    In the first column I want to show the item name, in second column, the attribute, and in the third column the value of the attribute, each attribute being a child node of the node that contain the item (in different rows).
    please any help to achieve this is welcome
    thanks in advanced!

  2. #2
    Join Date
    Mar 2011
    Hyderabad, India
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    MacOS X Unix/X11 Windows
    Wiki edits

    Default Re: Dom Model

    Sorry but your question is not specific enough, If I have to give an reply, I would say, you can achive this by using Model/View framework. Now you can refer the Qt documentation to know how to use Model/View, and then try out few things, and come back with specific questions

Similar Threads

  1. Replies: 9
    Last Post: 14th February 2013, 20:39
  2. Replies: 1
    Last Post: 24th February 2011, 06:54
  3. Model/view, apply a filter on model
    By remy_david in forum Qt Programming
    Replies: 4
    Last Post: 4th February 2011, 18:13
  4. Custom Model and Proxy Model
    By frank100 in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2010, 15:30
  5. Replies: 1
    Last Post: 1st February 2010, 19:42

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.