Hacker GitHub

← All repos

woboq/verdigris

View on GitHub ↗ ★ 671 C++

Qt without moc: set of macros to use Qt without needing moc

18 mentions on Hacker News by 11 people: 1 story, 17 comments · first 2016-06-16 · latest 2025-10-12

Mentions per year 18 mentions · busiest year 2020 (4)
20082026
  1. …q.com/blog/reflection-in-cpp-and-qt-moc.html 2014, That was based on a previous reflection proposal - https://github.com/woboq/verdigris : 2016, Replaces the moc by a set of macros. What my verdigris experience shows is that it is…
    comment by ogoffart · 2025-10-12 · in C++ Reflection and Qt MOC
  2. You can use Verdigris to achieve the same with Qt https://github.com/woboq/verdigris
    comment by zxspectrum1982 · 2025-01-13 · in DoxyPress – Modern Doxygen
  3. …an additional preprocessor to generate code in a separate .cpp file from these macros, you can use https://github.com/woboq/verdigris The concurrency model, object ownership and life cycle you are mentioning are not part of C++, those are…
  4. …and even then if compilation speed is too bad I wouldn't be entirely surprised if moc remains. [0]: https://github.com/woboq/verdigris
  5. > it's possible to do Qt without moc even in C++ with https://github.com/woboq/verdigris/ , why wouldn't it be possible from D ? You're talking about an entirely different thing. While OP was referring to the current state of D's ecosystem…
  6. …should tackle by making the moc multilingual) it's possible to do Qt without moc even in C++ with https://github.com/woboq/verdigris/ , why wouldn't it be possible from D ? it should be even easier considering that D traits allow…
  7. Simply add https://github.com/woboq/verdigris so you eliminate moc and can use C++ ≥ 14.
  8. Simply add https://github.com/woboq/verdigris so you can use C++ ≥ 14.
  9. Simply add https://github.com/woboq/verdigris so you can use C++ ≥ 14.
    comment by bmn__ · 2020-07-13 · in Wt – C++ Web Toolkit
  10. A much less invasive solution to the problem: https://github.com/woboq/verdigris
    comment by bmn__ · 2020-04-09 · in Qt and Open Source
  11. https://github.com/woboq/verdigris#who-uses-verdigris-
    comment by ailideex · 2019-12-31 · in Verdigris: Qt Without Moc
  12. …question. hell, you can even generate the signals code without moc if you are ok with more macros ( https://github.com/woboq/verdigris )
  13. No. But there are alternatives to moc like: https://github.com/woboq/verdigris .
    comment by xfer · 2019-11-06 · in C++ 20: The Core Language
  14. …you can have QObject-compatible signals / slots in pure C++ without any kind of specific tool : https://github.com/woboq/verdigris Also, Qt's approach is thread-safe (if you call a signal in a thread A on an object attached to a thread B,…
  15. ▲ 7
    Verdigris: Qt without moc
    story by ingve · 2018-02-13 · 0 comments
  16. …like moc, there's a way to get its features natively with C++14 compilers (and uglier macros) : https://github.com/woboq/verdigris
    comment by jcelerier · 2018-02-08 · in Qt Creator 4.6 Beta Released
  17. Check out https://github.com/woboq/verdigris
    comment by seba_dos1 · 2017-12-07 · in Qt 5.10 released
  18. Theres a neat project in the works: https://github.com/woboq/verdigris Unlike Copperspice, the other MOC-less Qt, this one is API compatible with Qt itself, you just include it and drop the MOC and use its functions instead of the original…
    comment by zanny · 2016-06-16 · in Qt 5.7 released