У нас вы можете посмотреть бесплатно Exception Handling in Qt или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this video, I'm interviewing Giuseppe D'Angelo to check up with one of my fundamental understandings, which says: "you should never use exception handling in Qt." What I learned was: "It depends..." - Watch this video to learn what you can do and what you shouldn't do. Qt exception safety policy is documented here https://doc.qt.io/qt-6/exceptionsafet... , a page that very few people know about. That first sentence says it all: "Preliminary warning: Exception safety is not feature complete! Common cases should work, but classes might still leak or even crash." However, it also offers some extra information. Now, to really nitpick: Qt containers try to honor some form of exception safety, and there are some autotests. Howeverthe tests are not thorough as they should be; we keep finding places where exception safety is broken (e.g. https://codereview.qt-project.org/c/q... fixed a 6-year-old bug in the area). We basically pay the price the fact that these codepaths are almost never exercised at large. At the end, the page says that throwing an exception through signals and slots is undefined behavior. This is a way for Qt to tell users to not ever rely on a behavior that "seems to work in practice" (even if it does work today, it may break in the future, and Qt won't accept it as a bug). 00:00 Intro 01:50 Why doesn't Qt use exceptions? 04:25 Exceptions in my own code 06:30 Throwing exceptions through Qt code 08:00 Qt containers are not exception-safe 15:40 Exceptions thrown through Qt signals and slots 21:28 Exceptions thrown through Qt's event loop 25:45 Summary All QML tips and tricks videos : • QML Tips and Tricks All Qt Widgets and more videos: • Qt Widgets and more About the host: The video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time. Every month our newsletter is featuring technical blogs on Qt, C++ and 3D topics: https://www.kdab.com/development-reso... About KDAB: KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrolment courses around the world. We are the market leaders for training in Qt, OpenGL and C++. Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-service... We are over 100 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/