Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED] Custom Raw plugin, missing entry point



  • Hello,

    QImage don't support .raw file, so I have here one plugin which should fix this problem, but I didn't found what should be in main() (entry point).

    I have RawHandler class and RawPlugin(in main.cpp) class, but how should be main function? empty? I don't think so.

    Do you need source code?

    Config:
    @TARGET = rawLib
    TEMPLATE = lib
    CONFIG = qt plugin
    VERSION = 1.0.0

    HEADERS = rawhandler.h
    SOURCES = rawhandler.cpp
    main.cpp

    target.path += $$[QT_INSTALL_PLUGINS]/imageformats
    INSTALLS += target@


  • Lifetime Qt Champion

    Hi,

    A plugin is a library so there is no main.

    Have a look "here":http://qt-project.org/doc/qt-4.8/plugins-howto.html to see how to do it



  • I already looked here, but why it what entry point then? Wrong project?

    SOLVED: I created empty project, not Plugin project my bad, thanks


Log in to reply