Results 1 to 20 of 33

Thread: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Smile Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Hey all!

    I've been really excited to get onto the new QML with C++ bandwagon. However, when trying to follow the tutorials (built-in "Charts" example) I've been running into this issue.

    It will not allow me to use Designer for QML, as well as add my own modules/C++ plugins.

    I've wiped Qt, re-installed and even re-built. Still getting the same error.

    I've looked over the internet to find only one guy who experienced the same problem and mentioned QmlObserver being used instead of QmlViewer, but I cannot find any option to change this?

    I have the brand new Qt 4.7 and I've also tried it with the new Qt Creator 2.0.92 (2.1.0 beta 1)

    Here's some images of what I'm seeing:

    In Code Editing View:

    In Designer View:


    Has any body experienced this problem, if so how did you solve it?

    Or are there any Qt experts that could help me out, would be much appreciated as I'm excited to start using QML with C++.

    Thanks in advance.

  2. #2
    Join Date
    Oct 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Is anybody else experiencing this, or not?

  3. #3
    Join Date
    Oct 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Ok, this gets even more strange.

    I can actually code with C++, create my own types for QML and invokable functions, however. Like in the original pictures they are appearing as invalid in Designer and Code editor... So it is valid at run-time but not whilst coding... What is going on?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Creator doesn't know anything about your packages and modules so it can't highlight or complete it. You need to write some additional code to make your modules recognizable by Creator.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Oct 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Hi Wysota,

    Thanks for your reply. Surely, if an example is provided by Qt to view, it should have all code written already. I haven't written this, it came with the Qt package.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Quote Originally Posted by kona_echinofu View Post
    Surely, if an example is provided by Qt to view, it should have all code written already.
    It's a coding example, not an example of highlighting qml syntax in Qt Creator which is not the only possible way one might be using Qt. If we try to understand it the way you do, Trolls would have to provide appropriate mechanisms for Visual Studio, Eclipse, KDevelop and all other possible code editors in the world.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Oct 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Quote Originally Posted by wysota View Post
    It's a coding example, not an example of highlighting qml syntax in Qt Creator which is not the only possible way one might be using Qt. If we try to understand it the way you do, Trolls would have to provide appropriate mechanisms for Visual Studio, Eclipse, KDevelop and all other possible code editors in the world.
    I never looked at it that way. Its just frustrating not being able to use c++ with qml designer. Is there anywhere with a tutorial (not the one provided by qt as it doesn't function) or will I have to wait till full release to be able to use qml with c++ with ease?

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Quote Originally Posted by kona_echinofu View Post
    I never looked at it that way. Its just frustrating not being able to use c++ with qml designer. Is there anywhere with a tutorial (not the one provided by qt as it doesn't function) or will I have to wait till full release to be able to use qml with c++ with ease?
    I have no idea what you mean.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Oct 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    I mean setting up Qt 4.7 to allow me to use C++ with QML and QML Designer. At this moment in time, I'm unable to do so as when I create C++ classes and expose them to QML and use them, they work and the application will run, but I cannot use QML Designer as it does not recognise these classes as QML objects and gives me the errors you see in the images.

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 4.7 QML/C++ Error : "Package not found" and "Module foobar is not installed"

    Quote Originally Posted by kona_echinofu View Post
    I mean setting up Qt 4.7 to allow me to use C++ with QML and QML Designer.
    QML and C++ are two different languages. You can't use them "together".

    At this moment in time, I'm unable to do so as when I create C++ classes and expose them to QML and use them, they work and the application will run, but I cannot use QML Designer as it does not recognise these classes as QML objects and gives me the errors you see in the images.
    Did you tell Creator about them by providing an appropriate extension plugin?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 11
    Last Post: 30th March 2015, 07:03
  2. Replies: 21
    Last Post: 20th October 2010, 14:25
  3. "Treat wchar_t as Built-in Type" to "yes" link error
    By sungaoyong in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2008, 12:45
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 16:58

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.