Originally posted by Ancurio
View Post
Announcement
Collapse
No announcement yet.
Qt 4.8 Forked Into New "CopperSpice" C++11 GUI Library
Collapse
X
-
Originally posted by cs-barbara View Post
Our target is for anyone using C++ who wants a GUI library. Not everyone using Qt 5 is happy with that project. There are a lot of developers who would like to see the existing features updated and bugs fixed. CopperSpice is doing just that.
Comment
-
Originally posted by lethal View Post
So you're "updating features and fixing bugs", why didn't you contribute directly to Qt5 ? Starting with Qt 5.6 a lot of C++11 will be allowed.
Comment
-
Originally posted by cs-barbara View Post
Our plan with CopperSpice is to leverage the STL and remove the duplication that still exists. Most of the containers should inherit from the STL. Time to leverage C++11 in GUI programming.
Comment
-
Originally posted by duby229 View Post
Consider me blind, deaf, and dumb when it comes to programming. But, for what it's worth I always consider simpler better. If what happens is simpler code exposing the same capability, then I'm all for it. From a non-programmers perspective that's what CopperSpice sounds like.Last edited by Luke_Wolf; 10 June 2015, 05:59 PM.
Comment
-
Originally posted by cs-barbara View PostQt is not a pure C++ library. If it was you could link with a Qt library and the moc code generation step would not be required. Building a Qt application requires a build system which is keenly aware of moc.
Totally right! The moc is a tool that conveniently generate C++ source code for the user but it is well know that code automatically generated cannot be considered standard. The standard mandate that every single line of C++ code MUST be written by a human being. If you're a real C++ programmer, you write your own code, even the tediously repetitive, error prone code that could easily be automated. If you don't, then your project forgo the right to be called "pure C++". Note that you can use auto complete in your code editor (so effectively let the editor write code for you), but please, don't tell anyone! The "pure C++" police might get you and revoke your C++ license.
Bottom line, write all your source code yourself and remember that only 'make' is approved as a tool for "pure C++" (again, as long as you write your Makefile yourself!, using cmake or qmake will get you nowhere).
</sarcasm>
Comment
-
Code:#include <QApplication> #include <QPushButton> #include <QMessageBox> int main(int argc, char **argv) { QApplication application(argc, argv); QPushButton button("Click me"); button.connect(&button, &QPushButton::clicked, [&] { QMessageBox::information(&button, "Title", "Hello world!"); }); button.show(); return application.exec(); }
Code:[FONT=monospace][COLOR=#000000]g++ ./main.cpp -lQt5Core -lQt5Gui -lQt5Widgets -fPIC -I/usr/include/qt/QtWidgets/ [/COLOR] -I/usr/include/qt -std=c++11[/FONT]
As for the actual topic, I think it sounds like a nice initiative.
I am all for better C++11 support and removing dependencies on MOC for advanced Qt programs which requires introspection.
That said, I would've preferred to see it as patches for Qt.
Also, automake seems like a huge step backwards to me.
Comment
-
Originally posted by lethal View PostStarting with Qt 5.6 a lot of C++11 will be allowed.
Comment
Comment