Results 1 to 2 of 2

Thread: QTreeWidget, double-clicks and assertion errors

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default QTreeWidget, double-clicks and assertion errors

    Qt 4.1.4 commercial version on Windows XP

    I've attached a sample program that illustrates what is occurring.

    I have two QTreeWidgets and two push buttons (add and remove). The list on the left is the 'available' list. The list on the right is the 'selected' list. As long as I use the Add/Remove buttons everything is fine. When I double-click on an item in the 'selected' list, it will be removed without incident as long as I am not removing the last remaining item. If I attempt to double-click on the last item I get:

    ASSERT failure in QVector<T>::at "index out of range"
    Attached Files Attached Files

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.