Results 1 to 6 of 6

Thread: setText in QTreeWidget Crashes?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    27

    Question setText in QTreeWidget Crashes?

    Hi All,

    I am working on Qt 4.2.2 on my MAC.
    I have set the text of the QTreeWidgetItem by using setText(QString).

    I am getting the following crash report.

    PID: 163
    Thread: 0

    Exception: EXC_BAD_ACCESS (0x0001)
    Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000026

    Thread 0 Crashed:
    0 MyApp 0x00153b18 QTreeModel::index(QTreeWidgetItem const*, int) const + 76
    1 MyApp 0x00154524 QTreeModel::parent(QModelIndex const&) const + 112
    2 MyApp 0x0046d310 QModelIndex::parent() const + 60
    3 MyApp 0x00161604 QTreeViewPrivate::viewIndex(QModelIndex const&) const + 84
    4 MyApp 0x001641b0 QTreeView::dataChanged(QModelIndex const&, QModelIndex const&) + 124
    5 MyApp 0x00166cc4 QTreeView::qt_metacall(QMetaObject::Call, int, void**) + 292
    6 MyApp 0x0015a59c QTreeWidget::qt_metacall(QMetaObject::Call, int, void**) + 40
    7 StellarPhoenix 0x0006a3d8 QMetaObject::activate(QObject*, int, int, void**) + 1240
    8 MyApp 0x0029eeac QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&) + 64
    9 MyApp 0x00154808 QTreeModel::emitDataChanged(QTreeWidgetItem*, int) + 396
    10 MyApp 0x00157b4c QTreeWidgetItem::setData(int, int, QVariant const&) + 1096
    11 MyApp 0x00443d80 QTreeWidgetItem::setText(int, QString const&) + 72
    If any body knows why it is crashing then plz help me.

    Thanks.
    Last edited by jpn; 1st February 2008 at 09:46. Reason: reformatted to look better

Similar Threads

  1. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32

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
  •  
Qt is a trademark of The Qt Company.