Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. std
    Log in to post

    • UNSOLVED (valid) QFileInfo causes segv when calling QFileInfo::filename() in std::sort
      General and Desktop • qt5 sort qt5.13.1 std qfileinfo • • CybeX  

      2
      0
      Votes
      2
      Posts
      152
      Views

      @CybeX Well, the debugger shows a as "<not accessible>", so unless its value has been optimized out that seems to be the cause of the SEGV. I admit I don't know how/why, assuming you only put items into fileInfoImageList via the code you show. I would start by just checking you can visit/print out all the QFileInfos in your lists before you start the std::sort()? I would also force a complete rebuild just to make sure. The placement of the debug breakpoint on line #319 which is blank looks odd to me, it's not supposed to do that....
    • [Solved] Pi2 QT5.4.1 - STD errors + Configure errors?
      Mobile and Embedded • qmake error raspberry pi configure 5.4.1 std error 1 • • Flame Soulis  

      2
      0
      Votes
      2
      Posts
      2623
      Views

      Solved. Just started compiling 5.4.2 and just small issues that are easier to resolve.
    • debugging with std::cin
      Tools • qtcreator debug std • • amigo421  

      1
      0
      Votes
      1
      Posts
      668
      Views

      No one has replied

    • [Solved] std::vector declaration causes Qt application to crash
      General and Desktop • crash runtime vector std • • Aslund  

      6
      0
      Votes
      6
      Posts
      3709
      Views

      Hello guys Thanks a lot for the answers. Your replies got me thinking and I recalled how includes can mess things up. I removed a couple of the include files in some of my header files that turned out to be unnecessary. After removing all the header files while still being able to compile then the program was running again perfectly. Regards Sebastian Aslund
    • [solved]using part of list in std::max_element function
      General and Desktop • std maxelement • • iskenderoguz  

      3
      0
      Votes
      3
      Posts
      1211
      Views

      exactly. thank you.