Results 1 to 4 of 4

Thread: QTreeWidget

  1. #1
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default QTreeWidget

    Hello, well i'm working on an IDE. It's simple, it haves line numbers, highlight, etc. The project main file have #include's which include all files to the project. But... How i can do a QTreeWidget that adds the #included files to the Tree? Only included.
    I have no idea about this Widget. No examples, nothing. ;(

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QTreeWidget

    How i can do a QTreeWidget that adds the #included files to the Tree? Only included.
    What's the problem exactly ? QTreeWidget is a class, include it by #include <QTreeWidget>.
    I have no idea about this Widget. No examples, nothing
    Then read documentation, there is an example of using QTreeWidget.

  3. #3
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTreeWidget

    No, i meant the project file has the #include for the files to add.

    Project file.ideproject
    >Test1.prog
    >Test2.prog

    Let's taking that ideproject is the main file of the project and test1 & 2 are the programmed files.

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTreeWidget

    The link stampede gave you is an example of QTreeWidget.

    So just parse your "main file of the project", extract your required data and add them as child items to a parent which is the name of the "main file of the project".

    Simples.

Similar Threads

  1. Replies: 2
    Last Post: 17th March 2008, 12:53
  2. look through a QTreeWidget
    By mattia in forum Newbie
    Replies: 5
    Last Post: 20th December 2007, 15:07
  3. Replies: 1
    Last Post: 19th October 2007, 01:29
  4. QTreeWidget
    By allensr in forum Qt Programming
    Replies: 3
    Last Post: 14th November 2006, 16:24
  5. QTreeWidget bug?
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2006, 09:03

Bookmarks

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.