Wireshark-dev: Re: [Wireshark-dev] wireshark component in Qt
From: Ahmed Elshaer <[email protected]>
Date: Wed, 15 May 2013 16:52:50 +0200
sorry for asking too many questions but i asked cuz i print some info about each packet in a treewidget
but i have this error 

ASSERT failure in QList<T>::operator[]: "index out of range", file ..\..\Desktop\Qt\4.8.1\mingw\include/QtCore/qlist.h, line 477

Invalid parameter passed to C runtime function.

i hope someone tell me what is this error mean or how i deal with it , or will it disappear if i used the other technique u described 

On Tue, May 14, 2013 at 9:19 PM, Ahmed Elshaer <[email protected]> wrote:
Thank u very much Guy Harris :)

On Tue, May 14, 2013 at 8:59 PM, Guy Harris <[email protected]> wrote:

On May 14, 2013, at 11:40 AM, Ahmed Elshaer <[email protected]> wrote:

> could u plz , tell me what is the component i can use in Qt as "packetList" pane

The Qt version of Wireshark uses the PacketList class, which is a subclass of QTreeView.  See ui/qt/packet_list.h.

> and what is the technique i can use so when i select a packet from packetlist pane i can do a tree decode in the second pane ,

That's handled in the Qt version of Wireshark by the selectionChanged method of a PacketList; see ui/qt/packet_list.cpp.

Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe