Extracting the Qt Designer Gradient Editor
-
I found this repository where the op extracted the
QtGradientEditor
source from Qt Designer, I asked from what source was it, and the op said5.15
.I tried to compile her repo using the
Qt 6.6
source but I got some compile errors like:
\moc_qtgradienteditor.cpp(415,30): error C2027: use of undefined type 'QtGradientEditorPrivate'
Based on the files he extracted I extracted the same files but from the 6.6.0 source, these files are located at
qttools\src\shared\qtgradienteditor
, but again it's not compiling now I'm getting linking errors like:1> qtgradientutils.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QDomNode::~QDomNode(void)" (__imp_??1QDomNode@@QEAA@XZ) referenced in function "struct std::pair<double,class QColor> __cdecl loadGradientStop(class QDomElement const &)" (?loadGradientStop@@YA?AU?$pair@NVQColor@@@std@@AEBVQDomElement@@@Z)
I'm compiling on Windows and using VS22, the project with the files extracted: https://github.com/R3uan3/QGradient
Appreciate any help in getting the gradient editor widget like on op repo.
-
Hi and welcome to devnet,
Did you forget to link against the xml module ?
-