Results 1 to 2 of 2

Thread: QString convert crash problem

  1. #1

    Default QString convert crash problem

    I trying convert my string to std string but i getting crash.

    And TestQmlCpp line 117
    std::string cString = m_processname.toStdString(); ( Crashing here )

    I trying to do this convert in function and i this function in thread ( CreateThread )
    How can i fix this problem?

  2. #2
    Join Date
    Jan 2006
    Graz, Austria
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Unix/X11 Windows

    Default Re: QString convert crash problem

    Maybe "this" is not a valid object at the point of accessing m_processname?

    Hard to tell without any code.


Similar Threads

  1. Replies: 6
    Last Post: 30th September 2015, 20:20
  2. convert Qstring into int
    By sabbu in forum Newbie
    Replies: 8
    Last Post: 8th June 2011, 16:31
  3. Replies: 4
    Last Post: 24th July 2009, 08:48
  4. convert QString to int
    By mattia in forum Newbie
    Replies: 2
    Last Post: 4th January 2008, 09:10
  5. How to convert Int to QString in QT4?
    By drake1983 in forum Newbie
    Replies: 2
    Last Post: 11th March 2007, 06:58


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.