Checking Your QModelIndex(es)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • When writing models using Qt's ModelView framework, are you always checking the indexes you are given, say, in rowCount?
    Well, obviously Qt itself isn't so broken that it gives you indexes out of range or from the wrong models, is it?
    The good news is, no it isn't.
    The bad news is, you (or your co-workers) might have written a broken proxy or interacted directly with the model in incorrect ways.
    This video will walk you through a bunch of macros to help you test your indexes before using them.
    * Episode on special roles for communicating through proxy models: • Communicating between ...
    * For more details see this blog post on checkIndex: www.kdab.com/n...
    The example code showcased in this video is available here: github.com/KDA...
    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: www.kdab.com/d...
    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. www.kdab.com/s...
    KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment 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: www.kdab.com/s...
    We are about 90 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. www.kdab.com/a...

ความคิดเห็น •