Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 737
    • Issues 737
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 209
    • Merge requests 209
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #11748

Closed
Open
Created Jan 20, 2011 by Kitware Robot@kwrobotOwner

Do not rely on STL support in QT

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


There is currently an issue with Visual Studio 2010 and QT 4.7.1 leading to crashes in STL-QT interoperability. Currently the only workaround is not to use STL with QT (-no-stl). Unfortunately, in VTK it is silently assumed STL support is always present. Fortunately, it is very small and can be easily removed by e.g. replacing toStdString() by toAscii().data()

1> vtkQtSQLQuery.cxx 1>........\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtSQLQuery.cxx(97): error C2039: 'toStdString' : is not a member of 'QString' 1> c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore../../src/corelib/tools/qstring.h(101) : see declaration of 'QString' 1>........\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtSQLQuery.cxx(105): error C2039: 'toStdString' : is not a member of 'QString' 1> c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore../../src/corelib/tools/qstring.h(101) : see declaration of 'QString' 1>........\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtSQLQuery.cxx(209): error C2039: 'toStdString' : is not a member of 'QString' 1> c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore../../src/corelib/tools/qstring.h(101) : see declaration of 'QString' 1>........\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtSQLQuery.cxx(226): error C2039: 'toStdString' : is not a member of 'QString' 1> c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore../../src/corelib/tools/qstring.h(101) : see declaration of 'QString' 1> vtkQtChartRepresentation.cxx 1>........\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtChartRepresentation.cxx(120): error C2039: 'toStdString' : is not a member of 'QString' 1> c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore../../src/corelib/tools/qstring.h(101) : see declaration of 'QString' 1> Generating Code...

Assignee
Assign to
Time tracking