PDA

View Full Version : Qt/C++: Treeview of Objects



lynx
2nd October 2008, 15:43
Hello!

Currently I am working on a project with Qt 3.3.8 and Visual Studio 6.

I got a method like "void mainform::StartProcessing" where three objects are created. The first is called "Ecu". This "ECU" gets several "requests" and "responses".

I now want to use QListView like that:

ECU_1
+request is:
-request 1
-request 2
-request 3
+response is:
-response1
-response2

ECU_2
+request is:
-request 1
-request 2
+response is:
-response1

...and so on.

Unfortunately I am a Qt-Newbie and also must use Qt 3.3.8 for this Problem. Additionally I use Qt-Designer to create my "mainform" but need the appropriate code for implementing it in "Visual Studio 6".

If you have tips, literature or even specific code, please let me know!

Thank everyone for helping!

With kind regards,
lynx