Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Spanish
  4. QDeclarativeContext: No such file or directory #include <QDeclarativeContext>
QtWS25 Last Chance

QDeclarativeContext: No such file or directory #include <QDeclarativeContext>

Scheduled Pinned Locked Moved Spanish
3 Posts 2 Posters 1.6k 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.
  • Aleix_1379A Offline
    Aleix_1379A Offline
    Aleix_1379
    wrote on last edited by Aleix_1379
    #1

    Estoy intentando poner:
    #include <QDeclarativeContext>
    para poder hacer esto:
    QDeclarativeContext *rootContex = viewer->rootContext();
    pero me sale el error:
    QDeclarativeContext: No such file or directory #include <QDeclarativeContext>

    Estoy utilizando Ubuntu 14.04

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Charlie_Hdz
      wrote on last edited by
      #2

      Hola Aleix.

      ¿Que version de Qt estas usando?
      Si estas usando Qt 5, las clases "Declarative" han cambiado de nombre...

      Te dejo el link donde lo explica...

      Sobre tu error... No tengo idea, pero seguramente te falta agregar un modulo en tu archivo .pro del proyecto.

      Suerte :D

      Kind Regards,
      Enrique Hernandez
      gearstech.com.mx
      chernandez@gearstech.com.mx

      1 Reply Last reply
      0
      • Aleix_1379A Offline
        Aleix_1379A Offline
        Aleix_1379
        wrote on last edited by
        #3

        Hola, gracias por responder

        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