Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Extracting the Qt Designer Gradient Editor

Extracting the Qt Designer Gradient Editor

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 375 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Rua3n
    wrote on last edited by
    #1

    I found this repository where the op extracted the QtGradientEditor source from Qt Designer, I asked from what source was it, and the op said 5.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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you forget to link against the xml module ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        Did you forget to link against the xml module ?

        R Offline
        R Offline
        Rua3n
        wrote on last edited by Rua3n
        #3

        Thank you now it compiled correctly!

        1 Reply Last reply
        0
        • R Rua3n has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved