<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 19 déc. 2022 à 04:51, Giuseppe D'Angelo via Development <<a href="mailto:development@qt-project.org">development@qt-project.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To me this is quite weird. This must be the *only* place in Qt <br>
model/view APIs where (column,row) is used instead of (row,column), and <br>
I don't seem to find any justification for this.<br>
<br>
Does anyone know?<br>
<br>
<br>
---<br>
<br>
What's more: there's inconsistencies already all over the place in <br>
TableView! For instance positional functions take (x,y), and not (y,x):<br></blockquote><div><br></div><div>Related issue : <a href="https://bugreports.qt.io/browse/QTBUG-104733">https://bugreports.qt.io/browse/QTBUG-104733</a><br>QML TableModel redefining QAIM methods with different signatures.<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
<br>
So, how to fix the above? One could easily fix the API break, but one is <br>
left with broken APIs all over the place. There's no straightforward <br>
deprecation mechanism for QML either, and we've dropped versioned includes.<br>
<br>
Should one concoct TableViewV2 and TreeViewV2 to fix all the above <br>
shortcomings? If so, can we have an exception to the feature freeze?<br></blockquote><div><br></div><div>That's a hard question to answer and that's a shame we have to, not releasing an API that goes against 20 years of Qt history would have been easier.<br><br>I don't think QML versioning would help. Having completely different function signatures between `import QtQuick x` versus `import QtQuick y` would be super error prone.<br>Maybe a compile time flag? a runtime one? To switch between the current way it is done and a saner and consistent with the rest of Qt one.<br><br>Regards,<br>Pierre-Yves Siret<br><br></div></div></div>