Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QStringLiteral was not declared in this scope
QtWS25 Last Chance

QStringLiteral was not declared in this scope

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 3.7k Views
  • 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.
  • HashDragonH Offline
    HashDragonH Offline
    HashDragon
    wrote on last edited by HashDragon
    #1

    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
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      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
      1

      • Login

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