Results 1 to 5 of 5

Thread: Why Microsoft Visual C++ Runtime Library error in Qt 4.8.0 using win32-g++

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Location
    Florida
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Why Microsoft Visual C++ Runtime Library error in Qt 4.8.0 using win32-g++

    I just transitioned my Qt project from 4.7.0 to 4.8.0 on Windows (win32-g++). After fixing the "--enable-auto-import" issue in qmake.conf I am able to build. But trying to run, it crashes with the following error. "Microsoft Visual C++ Runtime Library" "Runtime Error!":

    error.png

    I don't even have Visual C++ installed. Same code runs perfectly in 4.7.0... Any help would be greatly appreciated.

    I have more data: The actual error is:

    ASSERT failure in QVector<T>::at: "index out of range", file ..\..\include/QtCore/../../src/corelib/tools/qvector.h, line 351

    This occurs when I attempt to drag a QTreeWidgetItem from a QTreeWidget. AND the QTreeWidget has been filtered to display a single QTreeWidgetItem. Here's (part of) the constructor for the QTreeWidget class:


    SourceTreeWidget::SourceTreeWidget(QWidget * parent):

    QTreeWidget(parent), actionRename(false), sourceSearchString(""),
    masterSearchString(""), sourceFiltered(false), masterFiltered(false),
    _lastFilePath(DEFAULT_FILE_PATH)
    {

    setObjectName("SourceTreeWidget");

    connect(this, SIGNAL(itemChanged(QTreeWidgetItem *, int)),
    this, SLOT(changeSourceName(QTreeWidgetItem *, int)));

    model()->setSupportedDragActions(Qt::CopyAction);
    .
    .
    .
    }
    Last edited by E099844; 28th September 2012 at 19:50. Reason: updated contents

Similar Threads

  1. visual studio runtime error on qml-qt interaction
    By vinayaka in forum Qt Programming
    Replies: 0
    Last Post: 2nd June 2011, 13:06
  2. Replies: 0
    Last Post: 27th May 2011, 11:13
  3. Microsoft Visual C++- Runtime Library Error while deploying Qt Application
    By mammaiap in forum Installation and Deployment
    Replies: 1
    Last Post: 7th May 2011, 00:41
  4. Replies: 1
    Last Post: 25th September 2010, 08:20
  5. Replies: 2
    Last Post: 23rd November 2007, 17:44

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.