Project error unknown module s in qt pdf

Hello, I installed Qt 5.15.0 STL along with Qt 4.13.0 to start a new project for my client, except I noticed that there are a lot of modules that qt can't find like webenginewidgets and the pdf examples also don't still works same error: Project ERROR: Un...

This topic has been deleted. Only users with topic management privileges can see it.

  • Hello,

    I installed Qt 5.15.0 STL along with Qt 4.13.0 to start a new project for my client, except I noticed that there are a lot of modules that qt can’t find like webenginewidgets and the pdf examples also don’t still works same error:

    Project ERROR: Unknown module (s) in QT: pdf
    Project ERROR: Unknown module (s) in QT: pdfwidgets
    Project ERROR: Unknown module (s) in QT: webenginewidgets

    I have reinstalled the components with the maintenancetools.exe but still the same problem.

    can someone help me to solve this, thanks

    I am under windows 10.

  • Hi,

    Some modules have to be explicitly selected in the installer or maintenance tool. Check them there. Note that some module like QtWebEngine are not available for all compilers because of Chromium’s restrictions.

  • Hello,

    I checked that the modules are all installed, I took a screenshot.

    Capture.PNG

    When i add pdf module, webenginewdigets or pdfwidgets in .pro file. is still the same problem «Project ERROR: Unknown module (s) in QT» is install compilers are MinGW and MSVC 32 and 64 all the same problem.

  • @GeminiMan Are you sure you’re using one of the Qt versions where you installed these modules?

  • 100% sure I format my computer, I download Qt installer and I just install Qt 5.15.0 only.
    Look at the qt folder in the installation

    Capture.PNG

    So I only have version 5.15.0, tried guy and you will see

  • This post is deleted!

  • @GeminiMan said in Qt creator 4.13.0 and Qt5.15.0 Unknown module(s) not found:

    Project ERROR: Unknown module (s) in QT: pdf
    Project ERROR: Unknown module (s) in QT: pdfwidgets

    The Qt Company is currently finalizing ways to distribute the Qt PDF module: https://bugreports.qt.io/browse/QTBUG-87746?focusedCommentId=532158

    In the meantime, you can:

    • Build it from source code under the GPL/LGPL license (https://code.qt.io/cgit/qt/qtwebengine.git/tree/src/pdf ), or
    • Purchase it from the Qt Marketplace under the Qt Marketplace license (https://marketplace.qt.io/products/qtpdf )

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

    Note that Qt WebEngine is only compatible with MSVC; it is not compatible with MinGW.

  • Well thank you for your answer, but it’s fixed in version 5.15.1 ?

    for webenginewidgets does not work with MSVC2019 compiler.

  • New issue

    Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

    By clicking “Sign up for GitHub”, you agree to our terms of service and
    privacy statement. We’ll occasionally send you account related emails.

    Already on GitHub?
    Sign in
    to your account


    Open

    qiuzhu opened this issue

    Nov 30, 2018

    · 17 comments


    Open

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

    #1086

    qiuzhu opened this issue

    Nov 30, 2018

    · 17 comments

    Comments

    @qiuzhu

    I install QT 5.11.2 on ubuntu 16.04 , and when qmake the project, it throws error:
    Project ERROR: Unknown module(s) in QT: webkitwidgets

    how to solve the problem

    @Abs62

    GD require QtWebkit module. Find it or build from source.

    @qiuzhu

    QtWebkit module is removed from QT 5.11,how to find this Qtwebkit ?I Google it,but failed

    @Abs62

    IDK. QtWebkit source you can find here.

    @SunicYosen

    I also have this problem. And when i build QtWebKit alone, it shows
    «Project ERROR: WebKit requires SQLite. Either make it available via pkg-config, set $SQLITE3SRCDIR or build WebKit under qt5.git.»
    so, is there a simple way to build this project with recent Qt?

    @vedgy

    Some distributions package the latest version of Qt and QtWebkit. For instance the Arch Linux package uses the source code package from here. So for Arch Linux users building Goldendict with the latest Qt and QtWebkit versions is trivial. If anyone manages to build Goldendict with a non-system Qt and QtWebkit versions, they are welcome to post the steps in the Goldendict wiki.
    What is so important for Goldendict in recent Qt versions that you would suffer the overhead and possible inconsistencies of running two versions of Qt in one system?

    @a17r

    Are there any plans to port to QtWebEngine? Qt5WebKit is deprecated for a long time, not part of official Qt releases since 5.6 and meanwhile dropped wherever possible.

    @qiuzhu

    in the wiki, there is a compiled portable edition, but it is too old, I hope the latest release will be maintained. because install by myself is painstaking.

    @vedgy

    @qiuzhu, why not build goldendict with your Ubuntu 16.04 system Qt version 5.5.1? This build and installation process is documented in Goldendict’s README and should be straightforward.

    @qiuzhu

    @vedgy
    thank you very much, because I install the latest QT 5.11.2, and that is a tragedy. how can I make it compiled successfully without changing the QT edition?

    @vedgy

    @qiuzhu, the process is described at length here: https://github.com/goldendict/goldendict/blob/master/README.md. You don’t have to install any libraries from outside the official Ubuntu repositories. Start with the Installing External Deps on Ubuntu Linux for Qt5 section.
    Alternatively start with Installing External Deps on Ubuntu Linux if you prefer the older Qt4. You only have to run a single apt-get command — installing either Qt5 or Qt4 dependencies.

    @SunicYosen

    I have just compiled it with qt5.12.0 (lastest) at ubuntu 18.04.1.
    You can add qtwebkit submodule to yout QT to compile it. Something in my memory:

    1. Download qtwebkit soure code to compile it with&for your current qt at first. It may be error,but Just get .so files for using. http://code.qt.io/cgit/qt/qtwebkit.git/
    2. Add include files etc. from old(lastest as you find) compiled by others,
    3. Compile goldendict as usual.

    Because of no detail recorded, just this info for you. And my problems still there, i give up the new version i compiled.

    @qiuzhu

    @vedgy
    I try the method following step by step, and the same error.

    well, this is my default setting QT as is shown in the below snapshot:
    11

    @SunicYosen

    You need qtwebkit module for your Qt. Compile it first.

    @vedgy

    @SunYongshuai, Qt WebKit is available in official Ubuntu repositories. No need to compile it manually when using system Qt version.
    @qiuzhu, your qmake uses the new Qt version you have installed in your home directory. Either switch back to the system one by invoking something like /usr/bin/qmake (not sure if it will work so simply), or better uninstall Qt 5.11 if you don’t need it for any other application.

    @SunicYosen

    image
    Qt-make in Ubuntu18.04.1 is just 5.9.5.

    @vedgy

    @SunYongshuai, yes, it’s 5.9 in 18.04 and 5.5 in 16.04. These versions are perfectly suitable to build Goldendict with. I’ve actually compiled and run a recent Goldendict version with Qt 5.1/5.2 in Ubuntu 14.04. Why do you need the latest Qt version?

    @SunicYosen

    @vedgy I just like to use latest Qt version. Maybe it is better to suit for recently applications.

    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 выставлять в той ветке для которой уже установлены пакеты.

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


    Записан

    Понравилась статья? Поделить с друзьями:
  • 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