Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error: const class QString’ has no member name ‘toStdString’, QT 4.6.3 in Kubuntu 11.10
Forum Updated to NodeBB v4.3 + New Features

Error: const class QString’ has no member name ‘toStdString’, QT 4.6.3 in Kubuntu 11.10

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 7.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    ddiaz_atentus
    wrote on last edited by
    #1

    hello all,
    I have a problem trying to compile a source,
    and displays the following error 'const class QString’ has no member name ‘toStdString’'. in Kubuntu 11.10 with QT 4.6.3
    but, I have the same version of QT on Kubuntu 8.04 and compiled without problems

    I can be doing wrong?

    thanks for your answers, have a good day

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Qt may be compiled with different settings. There is an option allowing the use of standard strings. If this has not been switched on you may receive such an error message.

      You can download a version of Qt and compile it with string support. That is fairly easy.

      [edit] It is not string support, but stl-support

      "toStdString":http://developer.qt.nokia.com/doc/qt-4.8/qstring.html#toStdString description sais:

      [quote]
      This operator is only available if Qt is configured with STL compatibility enabled.
      [/quote]

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        ddiaz_atentus
        wrote on last edited by
        #3

        [quote author="koahnig" date="1326398093"]welcome to devnet

        Qt may be compiled with different settings. There is an option allowing the use of standard strings. If this has not been switched on you may receive such an error message.

        You can download a version of Qt and compile it with string support. That is fairly easy.

        [edit] It is not string support, but stl-support

        "toStdString":http://developer.qt.nokia.com/doc/qt-4.8/qstring.html#toStdString description sais:

        [quote]
        This operator is only available if Qt is configured with STL compatibility enabled.
        [/quote][/quote]

        Thanks for answering!,

        try to compile the qt version of STL support (according to documentation is the default), including explicit

        . /configure -stl

        but did not work on linux kubuntu 11.10 at 8.04 if it works without problem.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved