[antlr-interest] AST within Qt's QTreeWidget?

Christian Benjamin Ries christian_benjamin.ries at fh-bielefeld.de
Thu Aug 25 03:40:01 PDT 2011


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



More information about the antlr-interest mailing list