Project error unknown module s in qt declarative

Unknown module(s) in QT: declarative C++ Qt Решение и ответ на вопрос 1841149

wildnothing

0 / 0 / 1

Регистрация: 26.10.2016

Сообщений: 130

1

02.11.2016, 22:50. Показов 11093. Ответов 5

Метки нет (Все метки)


:-1: ошибка: Unknown module(s) in QT: declarative

C++
1
2
3
#include <QtDeclarative/QDeclarativeView>
#include <QtDeclarative/QDeclarativeEngine>
#include <QGLWidget>

Я так понимаю, дело в том, что в 5.6версии, которую я использую, эти юниты дополнены и изменены, и названы иначе? Как? Или пробелма в чем-то другом?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



WarpDrive

Заблокирован

02.11.2016, 23:57

2

Цитата
Сообщение от wildnothing
Посмотреть сообщение

так понимаю, дело в том, что в 5.6версии, которую я использую, эти юниты дополнены и изменены, и названы иначе?

Эти модули исчезли уже давно после Qt4. Тут можешь почитать http://doc.qt.io/qt-5/qtquick-porting-qt5.html

Кликните здесь для просмотра всего текста

QDeclarativeComponent -> QQmlComponent
QDeclarativeContext -> QQmlContext
QDeclarativeEngine -> QQmlEngine
QDeclarativeError -> QQmlError
QDeclarativeExpression -> QQmlExpression
QDeclarativeExtensionPlugin -> QQmlExtensionPlugin
QDeclarativeInfo -> QQmlInfo
QDeclarativeListReference -> QQmlListReference
QDeclarativeNetworkAccessManagerFactory -> QQmlNetworkAccessManagerFactory
QDeclarativeParserStatus -> QQmlParserStatus
QDeclarativeProperty -> QQmlProperty
QDeclarativePropertyMap -> QQmlPropertyMap
QDeclarativePropertyValueSource -> QQmlPropertyValueSource
QDeclarativeScriptString -> QQmlScriptString
QDeclarativeItem -> QQuickItem
QDeclarativeView -> QQuickView
QDeclarativeImageProvider -> QQuickImageProvider

QT += qml quick

C++ (Qt)
1
2
#include <QtQml/QQmlEngine>
#include <QtQuick/QQuickView>



1



wildnothing

0 / 0 / 1

Регистрация: 26.10.2016

Сообщений: 130

03.11.2016, 00:07

 [ТС]

3

Спасибо! А вот еще ругается на

Javascript
1
import Qt 4.3

Что нужно сделать в данном случае?

 Комментарий модератора 
Код QML обозначается с помощью тега JS.



0



Wyn

1067 / 649 / 229

Регистрация: 14.01.2016

Сообщений: 2,031

Записей в блоге: 9

03.11.2016, 08:30

4

Цитата
Сообщение от wildnothing
Посмотреть сообщение

Что нужно сделать в данном случае?

Замените на

Javascript
1
import QtQml 2.2



0



WarpDrive

Заблокирован

03.11.2016, 09:50

5

Цитата
Сообщение от Wyn
Посмотреть сообщение

import QtQml 2.2

Низко летаете, сэр

Javascript
1
2
import QtQuick 2.7
import QtQuick.Controls 2.0



0



Wyn

1067 / 649 / 229

Регистрация: 14.01.2016

Сообщений: 2,031

Записей в блоге: 9

03.11.2016, 11:04

6

Цитата
Сообщение от WarpDrive
Посмотреть сообщение

Низко летаете, сэр

А вы — слишком высоко.
QtQuick 2.7 поставляется с Qt 5.7. У топикстартера Qt 5.6.
QtQuick.Controls 2.0 отнюдь не обязателен. Более того, этот модуль так до конца и не доделан. Более того, в 5.6 он ещё назывался Qt.labs.controls 1.0.

Добавлено через 1 минуту

Цитата
Сообщение от wildnothing
Посмотреть сообщение

C++ (Qt)
1
#include <QGLWidget>

В Qt 5.6 данный класс заменён на QOpenGLWidget.



0



Click here follow the steps to fix Project Error Unknown Module S In Qt Vector and related errors.

Instructions

 

To Fix (Project Error Unknown Module S In Qt Vector) error you need to
follow the steps below:

Step 1:

 
Download
(Project Error Unknown Module S In Qt Vector) Repair Tool
   

Step 2:

 
Click the «Scan» button
   

Step 3:

 
Click ‘Fix All‘ and you’re done!
 

Compatibility:
Windows 7, 8, Vista, XP

Download Size: 6MB
Requirements: 300 MHz Processor, 256 MB Ram, 22 MB HDD

Limitations:
This download is a free evaluation version. To unlock all features and tools, a purchase is required.

Project Error Unknown Module S In Qt Vector Error Codes are caused in one way or another by misconfigured system files
in your windows operating system.

If you have Project Error Unknown Module S In Qt Vector errors then we strongly recommend that you

Download (Project Error Unknown Module S In Qt Vector) Repair Tool.

This article contains information that shows you how to fix
Project Error Unknown Module S In Qt Vector
both
(manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages related to Project Error Unknown Module S In Qt Vector error code that you may receive.

Note:
This article was updated on 2023-02-04 and previously published under WIKI_Q210794

Contents

  •   1. What is Project Error Unknown Module S In Qt Vector error?
  •   2. What causes Project Error Unknown Module S In Qt Vector error?
  •   3. How to easily fix Project Error Unknown Module S In Qt Vector errors

What is Project Error Unknown Module S In Qt Vector error?

The Project Error Unknown Module S In Qt Vector error is the Hexadecimal format of the error caused. This is common error code format used by windows and other windows compatible software and driver vendors.

This code is used by the vendor to identify the error caused. This Project Error Unknown Module S In Qt Vector error code has a numeric error number and a technical description. In some cases the error may have more parameters in Project Error Unknown Module S In Qt Vector format .This additional hexadecimal code are the address of the memory locations where the instruction(s) was loaded at the time of the error.

What causes Project Error Unknown Module S In Qt Vector error?

The Project Error Unknown Module S In Qt Vector error may be caused by windows system files damage. The corrupted system files entries can be a real threat to the well being of your computer.

There can be many events which may have resulted in the system files errors. An incomplete installation, an incomplete uninstall, improper deletion of applications or hardware. It can also be caused if your computer is recovered from a virus or adware/spyware
attack or by an improper shutdown of the computer. All the above actives
may result in the deletion or corruption of the entries in the windows
system files. This corrupted system file will lead to the missing and wrongly
linked information and files needed for the proper working of the
application.

How to easily fix Project Error Unknown Module S In Qt Vector error?

There are two (2) ways to fix Project Error Unknown Module S In Qt Vector Error:

Advanced Computer User Solution (manual update):

1) Start your computer and log on as an administrator.

2) Click the Start button then select All Programs, Accessories, System Tools, and then click System Restore.

3) In the new window, select «Restore my computer to an earlier time» option and then click Next.

4) Select the most recent system restore point from the «On this list, click a restore point» list, and then click Next.

5) Click Next on the confirmation window.

6) Restarts the computer when the restoration is finished.

Novice Computer User Solution (completely automated):

1) Download (Project Error Unknown Module S In Qt Vector) repair utility.

2) Install program and click Scan button.

3) Click the Fix Errors button when scan is completed.

4) Restart your computer.

How does it work?

This tool will scan and diagnose, then repairs, your PC with patent
pending technology that fix your windows operating system registry
structure.
basic features: (repairs system freezing and rebooting issues , start-up customization , browser helper object management , program removal management , live updates , windows structure repair.)

neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


Здравствуйте.

Хочу поработать с модулем построения графиков Qt Charts.
Установил Qt Charts через MaintenanceTool.exe  (смотри картинку в приложении).

Создаю новый проект.
Но когда в pro-файле добавляю charts

QT += charts core gui

 то получаю ошибку

Project ERROR: Unknown module(s) in QT: charts

Как заставить увидеть Qt Charts?

Спасибо.

« Последнее редактирование: Январь 11, 2022, 00:52 от neosapient1 »
Записан
kambala


может она установилась под какую-то конкретную версию Qt? у тебя их вон 3.


Записан

Изучением C++ вымощена дорога в Qt.

UTF-8 has been around since 1993 and Unicode 2.0 since 1996; if you have created any 8-bit character content since 1996 in anything other than UTF-8, then I hate you. © Matt Gallagher

neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


Галки выставлены так, как указано на прикрепленной картинке.
Не вижу как этими настройками можно дополнительно управлять.


Записан
kambala


речь не о галках, там особо нечем управлять. поищи в каких из папок появился модуль. если лишь в одной — тогда проблема ясна.


Записан

Изучением C++ вымощена дорога в Qt.

UTF-8 has been around since 1993 and Unicode 2.0 since 1996; if you have created any 8-bit character content since 1996 in anything other than UTF-8, then I hate you. © Matt Gallagher

neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


Я не знаю, как этот модуль должен выглядеть.

Смотрел в папке C:Qt5.15.2msvc2015_64bin (и ей подобным ‘msvc2019’ и ‘msvc2019_64’). Там нет библиотек вида Qt5Cahrts.dll (или что там должно быть?)
Не знаю, что искать.

P.S.
Есть папка C:Qt5.15.2Srcqtcharts
Пробовал собрать библиотеку — куча ошибок вылезло.


Записан
neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


В итоге поборол сборку файлов Qt5Charts.dll и Qt5Chartsd.dll из исходников.
Все папки (bin, examples, include, lib, mkspecs, qml, src, tests) перекинул в папку C:Qt5.15.2msvc2015_64.
Дальше всё заработало.

P.S.
Ещё надо было прописывать пути к программе rc.exe
Добавил в Path следующий путь
   C:Program Files (x86)Windows Kits10bin10.0.19041.0×64


Записан
PimenS

Крякер
****
Offline Offline

Сообщений: 363

Просмотр профиля


Галки выставлены так, как указано на прикрепленной картинке.
Не вижу как этими настройками можно дополнительно управлять.

Просто нужно было галку Qt Charts выставлять в той ветке для которой уже установлены пакеты.


Записан
neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


Просто нужно было галку Qt Charts выставлять в той ветке для которой уже установлены пакеты.

Ох, проглядел. Есть такая галка.
Спасибо! Буду знать.


Записан
  • Home
  • Forum
  • Qt
  • Qt Programming
  • Configuring problem in Qt Creator

  1. Default Configuring problem in Qt Creator

    While trying to configure my file following problem is arising. How to solve this problem?

    *********************************************

    The system cannot find the path specified.
    The system cannot find the path specified.
    Could not find qmake configuration file default.
    Error while parsing file E:Bridge-ImprovementsOriginalDatabridge-clientbridge.pro. Giving up.
    Project ERROR: Unknown module(s) in QT: declarative


  2. Default Re: Configuring problem in Qt Creator

    The system cannot find the path specified.

    You are trying to read, write, or run a file or program where 1) the file doesn’t exist, 2) the directory is wrong, 3) you don’t have permission, or 4) the argument isn’t being correctly interpreted by the command processor.

    A common cause of this is having a path with spaces in it; the command line will treat that as two separate arguments. If this is in a configuration file of some sort, you must enclose the whole path in double quotes: «C:Path To My ProgramMy Program.exe»

    Project ERROR: Unknown module(s) in QT: declarative

    You are trying to use Qt 5 to build a Qt Quick program developed using Qt 4.8. See this.

    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click «Go Advanced» and then the «#» icon to insert the tags. Paste your code between them.


Similar Threads

  1. Replies: 0

    Last Post: 7th November 2013, 08:30

  2. Replies: 0

    Last Post: 6th January 2010, 16:52

  3. Replies: 9

    Last Post: 22nd October 2009, 10:38

  4. Replies: 2

    Last Post: 7th February 2009, 22:02

  5. Replies: 5

    Last Post: 23rd October 2008, 14:55

Bookmarks

Bookmarks


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules

Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.

Понравилась статья? Поделить с друзьями:
  • Project error unknown module s in qt core gui quick
  • Project error unknown module s in qt core gui network widgets
  • Project error failed to parse qmlimportscanner output
  • Project error cannot run compiler cl output
  • Project error building qtqml requires python