Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT 4.7.4 for Mac has strange Version of qdeclarativeimageprovider.h

QT 4.7.4 for Mac has strange Version of qdeclarativeimageprovider.h

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 1.9k 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.
  • C Offline
    C Offline
    Chaos_99
    wrote on last edited by
    #1

    I've downloaded QT 4.7.4 for Mac and tried to build KDEs Marble.
    I got errors that some class functions are not defined. Seems the compiler is right:

    The file /usr/local/Trolltech/Qt-4.7.0/include/QtDeclarative/qdeclarativeimageprovider.h

    reads like this:

    @
    class Q_DECLARATIVE_EXPORT QDeclarativeImageProvider
    {
    public:
    virtual ~QDeclarativeImageProvider();
    virtual QImage request(const QString &id) = 0;
    };
    @

    While the reference documentation here http://doc.qt.nokia.com/4.7/qdeclarativeimageprovider.html also mentions the following functions:
    @
    QDeclarativeImageProvider ( ImageType type )
    virtual ~QDeclarativeImageProvider ()
    ImageType imageType () const
    virtual QImage requestImage ( const QString & id, QSize * size, const QSize & requestedSize )
    virtual QPixmap requestPixmap ( const QString & id, QSize * size, const QSize & requestedSize )
    @
    Also the same file in the git repository http://qt.gitorious.org/qt/qt/blobs/4.7/src/declarative/qml/qdeclarativeimageprovider.h reads
    @
    class Q_DECLARATIVE_EXPORT QDeclarativeImageProvider
    {
    public:

    enum ImageType {
        Image, 
        Pixmap
    

    };
    QDeclarativeImageProvider(ImageType type);
    virtual ~QDeclarativeImageProvider();
    ImageType imageType() const;
    virtual QImage requestImage(const QString &id, QSize *size, const QSize& requestedSize);
    virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize& requestedSize);

    private:
    QDeclarativeImageProviderPrivate *d;
    };
    @
    Why is my version different? How do I get the right version of the file?

    Best regards,
    Chaos

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

      Sometime you just need to read what you have written:

      /usr/local/Trolltech/Qt-4.7.0/ is quite obviously not the path for QT 4.7.4

      So why does cmake pick up a wrong path?
      And where does 4.7.4 gets installed?
      And how to safely uninstall old QT library versions?
      Why does marble claim to be compatible with QT 4.6, if it needs features from 4.7.4?

      Oh all those questions!

      I'll need to investigate ...

      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