Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved QStringLiteral was not declared in this scope

    General and Desktop
    2
    2
    3414
    Loading More Posts
    • 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.
    • HashDragon
      HashDragon last edited by HashDragon

      Hello everyone,
      I am trying to compile a small piece of code which involves the usage of the QStringLiteral library but the compilation always terminates with that error.
      Here are the details :
      QMake version 3.0
      Using QT Version 5.2.1
      QTCreator 3.0.1
      OS : Ubuntu

      I have added CONFIG+=c++11 in the pro file as per the documentation.
      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • VRonin
        VRonin last edited by

        That normally happens when you try and compile with Qt4, could you post the code?

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply Reply Quote 1
        • First post
          Last post