How usable is Qt without its preprocessing step?

后端 未结 12 807
自闭症患者
自闭症患者 2021-02-02 05:21

I think it\'s unreasonable for a library to require preprocessing of my source code with a special tool. That said, several people have recommended the Qt library to me for cros

12条回答
  •  难免孤独
    2021-02-02 05:39

    (sorry for reviving such an old post)

    I was required to do a C/W assignment for my MSc unit in 3D Software Development.

    Unfortunately a requirement was to use Qt to provide an OpenGL context rather than use Glut, native X11, Gtk etc...

    I did not want to use MOC and with a lot of fiddling I was able to get just enough callbacks (such as keyboard, mouse, paint, timer etc...) to make a usable submission. So for using Qt with a primary reason for OpenGL software, it actually works fine without MOC.

    However, I can't see how a full application could be developed without using MOC. Which is a shame.

    This Qt MOC thing is a pain. I don't understand why so many C++ developers seem to find it acceptable frankly. It is extremely unportable and will get crusty fast! (Just try to get some Borland Kylix C++ code to compile. You will soon realize what a bad idea this is).

    If I wanted to use non-standard C++, I would just use Microsoft C++/CLI.

提交回复
热议问题