Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Conversation

Notices

  1. Jean Jean Qt Users

    I'm using qt 4.7 but I get msg of the error: "error: call of overloaded ‘QString(int)’ is ambiguous" it's a bug of the 4.7? !qt

    Monday, 09-Aug-10 15:19:25 UTC from Choqok
    • David Faure David Faure

      @lentulius: you can't create a QString from an int, this has always been an error in Qt4. What's your line of code?

      Monday, 09-Aug-10 15:24:05 UTC
    • Jean Jean David Faure

      @dfaure In .h: "QString variable"; In .cpp:"variable(0);".

      Monday, 09-Aug-10 15:41:12 UTC
    • David Faure David Faure

      @lentulius remove the 0.

      Monday, 09-Aug-10 15:42:03 UTC
    • Jean Jean David Faure

      @dfaure I need it.

      Monday, 09-Aug-10 15:49:50 UTC
    • David Faure David Faure

      @lentulius Trust me, you don't. You can create an empty string with variable() in a ctor initialization list, or with variable = QString().

      Monday, 09-Aug-10 15:50:56 UTC
    • Lorenzo Masini Lorenzo Masini

      @lentulius: I can't find any constructor taking an int as argument. Could you paste the code that throws that error?

      Monday, 09-Aug-10 16:04:22 UTC
    • Jean Jean Lorenzo Masini

      @rugginoso In .h: "QString variable;" In .cpp:"variable(0);".

      Monday, 09-Aug-10 16:29:47 UTC
    • Lorenzo Masini Lorenzo Masini

      @lentulius: variable is not a pointer, you have not to initialize it to 0.

      Monday, 09-Aug-10 16:33:33 UTC
    • Markos Chandras Markos Chandras

      @lentulius No the Qt API doesn't accept QString foo = 0 anymore. Use Qstring foo =QString::null

      Monday, 09-Aug-10 22:04:05 UTC

Site notice

  • API
  • Status

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by Status.net. It runs the StatusNet microblogging software, version 1.1.0-alpha1, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal