Hi, just updated to Qt Creator 17 and it looks good, however when
rebuilding my Qt Creator plugin I got stuck for a bit with this failing:
auto pe =
qobject_cast<QPlainTextEdit*>(EditorManager::currentEditor()->widget());
For almost 15 years that statement served me well and it allowed for
example setting a fatter cursor at Qt Creator start (useful on 4K
screens) but today, it returns a nullptr :-(
Instead, the new incantation for Qt Creator 17 (and onwards?) seems to be:
auto pe =
qobject_cast<Utils::PlainTextEdit*>(EditorManager::currentEditor()->widget());
After that fix, it's smooth sailing (Utils::PlainTextEdit behaves 100%
compatible with QPlainTextEdit).
But if there was a bit of documentation of this new class in the Utils::
Namespace I would be even more happy!
Rgrds Henry
--
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator