Originally posted by Luke
View Post
Announcement
Collapse
No announcement yet.
GTK4 Development Code Just Received 100+ Commits Dropping Old Stuff
Collapse
X
-
Originally posted by jacob View Post
You are absolutely right about the documentation.
But elegant, excuse me? Granted, I didn't look at the latest version, so some of my griefs maybe no longer apply. Still... Having to use MOC, which makes your code essentially impossible to be checked using a C++ static analyser. The fact that you can only connect signals to slots, not directly to any arbitrary method, toplevel function or - God forbid - a C++11 lambda. The same signal/slot mechanism (why does it exist at the first place, why?!) makes sure that any Qt code is inherently not type safe. Then if you ever hope to actually draw something on the screen, instead of the standard, clean and consistent Cairo API you have to put up with Qt's proprietary WTFic rendering API where you specify angles in 16ths of degrees (!!!) and, just for good measure, in inverse trigonometric sense.
For those who manage to tolerate this enough to actually develop some apps with it, they always integrate very poorly with the environment (presumably unless you run KDE.... but I don't and won't) and no matter what and which theme you select, I also always found that they look ugly as hell.
I might be missing something but so far I really don't see what it is about Qt that makes people talk so highly about it.
Basically, you haven't used Qt in five years.
> Having to use MOC, which makes your code essentially impossible to be checked using a C++ static analyser.
I check my Qt code with clang-anlayze, clazy, cppcheck, coverity, and cppdepends and don't have a problem.
> The fact that you can only connect signals to slots, not directly to any arbitrary method, toplevel function or - God forbid - a C++11 lambda.
Of course you can, this works since Qt 5.0 (2011/2012) : https://woboq.com/blog/new-signals-s...ax-in-qt5.html
I agree that QGraphicsView is subpar, but nothing prevents you from using another drawing library in your Qt app if you want.
- Likes 5
Comment
-
The only thing I don't like about Qt is the overlap between some Qt features and modern C++ equivalents that appeared in 11, 14 and 17. Qt just does not feel like C++ but a whole other language of it's own. Other than that, the documentation is superb and it's easy to use.
Comment
-
Originally posted by cen1 View PostThe only thing I don't like about Qt is the overlap between some Qt features and modern C++ equivalents that appeared in 11, 14 and 17. Qt just does not feel like C++ but a whole other language of it's own. Other than that, the documentation is superb and it's easy to use.
Comment
-
Originally posted by Luke View PostGTK 3.22 is now stable, themes will never break again, and all the GTK3 ported non-GNOME apps can catch up and not worry about a moving target any more. They get Wayland support and modern theming plus the stability of GTK 2. The failure to stabilize GTK3 until now meant GNOME had to keep maintaining GTK2. They are advising that nobody outside GNOME target 4.0 until it is stable, in about two years. Until then it will be called 3.90 or such, and this will be repeated for 4.2
- Likes 1
Comment
-
Originally posted by estan View PostWhy would the use of MOC interfere with static analysis? It just preprocesses into regular C++.
btw, good c++ programmer would try to avoid any preprocessor
Comment
Comment