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
20082026
-
…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 -
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 -
…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…
comment by jcelerier · 2024-04-20 · in 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup -
…and even then if compilation speed is too bad I wouldn't be entirely surprised if moc remains. [0]: https://github.com/woboq/verdigris
comment by aw1621107 · 2023-02-27 · in KDE Plasma development switches to Qt 6 tomorrow -
> 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…
comment by arinlen · 2022-07-19 · in Carbon Language: An experimental successor to C++ -
…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…
comment by jcelerier · 2022-07-19 · in Carbon Language: An experimental successor to C++ -
Simply add https://github.com/woboq/verdigris so you eliminate moc and can use C++ ≥ 14.
comment by bmn__ · 2020-11-07 · in Gimp 2.99.2 – GTK3 user interface toolkit -
Simply add https://github.com/woboq/verdigris so you can use C++ ≥ 14.
comment by bmn__ · 2020-08-04 · in Making Advanced GUI Applications with Godot -
Simply add https://github.com/woboq/verdigris so you can use C++ ≥ 14.
comment by bmn__ · 2020-07-13 · in Wt – C++ Web Toolkit -
A much less invasive solution to the problem: https://github.com/woboq/verdigris
comment by bmn__ · 2020-04-09 · in Qt and Open Source -
https://github.com/woboq/verdigris#who-uses-verdigris-
comment by ailideex · 2019-12-31 · in Verdigris: Qt Without Moc -
…question. hell, you can even generate the signals code without moc if you are ok with more macros ( https://github.com/woboq/verdigris )
comment by jcelerier · 2019-11-21 · in The Firefox UI Is Now Built with Web Components -
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 -
…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,…
comment by jcelerier · 2018-12-10 · in Callbacks in C++ using template functors (1994) -
▲ 7
Verdigris: Qt without mocstory by ingve · 2018-02-13 · 0 comments
-
…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 -
Check out https://github.com/woboq/verdigris
comment by seba_dos1 · 2017-12-07 · in Qt 5.10 released -
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