QUndoCommand
-
It probably just felt right at the time to put it in widgets. That class is older than QtQuick, older than QtGui module. I've checked the code, there is nothing widgets-specific there, it could easily be moved out of Widgets into Gui or even Core. I guess people just forgot about it.
You can propose to move it (via mailing lists or Qt bugtracker), but the earliest when it can be done is Qt 7.
-
@sierdzio
Thanks for answering! I didn't mean to start a riot :) It just means that, for example, unless it's in Core it cannot be used in aQCoreApplication
/non-UI program, where its functionality might still be wanted.FWIW I created a "suggestion" at https://bugreports.qt.io/browse/QTBUG-102602.
-
It's a good suggestion, I totally support it. I don't think it will be treated as "riot". A lot of classes were moved out of widgets before Qt 5, it's entirely possible this one just got missed.