News for hackers. Stuff that matters.
Re:Verdigris: Qt Without Moc by likeliv on Tuesday December 31, 2019 @02:24AM (#21919524)
No need to use Qt creator. Most C++ build systems support moc out of the box, or with minor adjustments.
Re:Verdigris: Qt Without Moc by ahartmetz on Tuesday December 31, 2019 @06:17AM (#21920273)
Qt Creator doesn't even get involved in the build once it has started qmake - a qmake .pro[ject] file is nothing like a Visual Studio project file. You are supposed to make edits other than adding or removing source files by hand. So you really don't need Qt Creator for moc.

Note that qmake is generally easiest for tiny programs such as bug reproducers. For anything nontrivial, it's better to use CMake. Most advanced functionality in qmake is undocumented and weird. Qt itself is moving to CMake with Qt 6.

Re:Verdigris: Qt Without Moc by ailideex on Tuesday December 31, 2019 @02:45AM (#21919578)
I was trying to figure out how to do MOC from gnu make when I came across this, the only other option I saw was to run qmake and then run that generated makefile from my makefile. Of those two options verdigris seemed to be the better choice to me.
Re:Verdigris: Qt Without Moc by marmaduke on Tuesday December 31, 2019 @03:41AM (#21919753)
Re:Verdigris: Qt Without Moc by ailideex on Tuesday December 31, 2019 @03:44AM (#21919761)
Thanks, I guess I should have kept on looking.
Re:Verdigris: Qt Without Moc by ahartmetz on Tuesday December 31, 2019 @06:08AM (#21920235)
CMake also has automoc built-in. You need to do next to nothing for moc support with CMake.