Login  Register

Re: LIBRECAD ISSUE WITH QT

Posted by IRD on Nov 29, 2013; 11:20pm
URL: https://forum.librecad.org/LIBRECAD-ISSUE-WITH-QT-tp5709218p5709228.html

I have solved this issue.

In fact the problem come from the frame of sameprop.cpp.
Indeed, it uses Qvariant and therefore some types have to be defined as Q_DECLARE_METATYPE()

However I am unabled to identify what have to declare as Q_METATYPE.

Anyone has an idea?

Thanks

Extract from sameprop.cpp

...
    QHash<int, QVariant> data, moddata;
    QList<Plug_Entity *> obj;
    QVariant lay, col, ltype, lwidth;
...
    lay = data.value(DPI::LAYER);
    col = data.value(DPI::COLOR);
    ltype = data.value(DPI::LTYPE);
    lwidth = data.value(DPI::LWIDTH);
...