A similar approach is in my mind, in Qt I would spezialize
  - QStandardItemModel
  - QStandardItem
to do this, as a wrapper or copy. During weekend I will try this.

@Ivan,
I recognized some collisions with Qt and ANTLR, "emit" is used in both and this 
is reserved by Qt, 
just we know. Could you share your approach?

Christian

Am 25/08/11 12:31, schrieb Sam Barnett-Cormack:
> On 25/08/2011 10:48, Christian Benjamin Ries wrote:
>> Hello,
>>
>> could you give me some information how I can display an AST within a
>> QTreeWidget?
>>
>> Suggestions, links, already running implementations would be
>> perfect!
>>
>> I use the C-target for my work.
>
> I can't say anything specific, but I can say that I've done a similar
> use-case (in Java, and not an ANTLR AST but a different tree structure)
> just by making use of the adapter pattern, wrapping the tree in a class
> that provides the functions expected by the GUI and delegating to the
> 'real' tree.
>
> Sam


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to