Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt 5.11: Quick Controls 1 deprecated



  • Hi,

    I read in https://wiki.qt.io/New_Features_in_Qt_5.11 that Qt Quick Controls 1 are deprecated. Does it mean Qt Quick Controls 1 in general (so that 1.4 stays in Qt) or actually all version 1 controls?


  • Moderators

    @maxwell31 said in Qt 5.11: Quick Controls 1 deprecated:

    Does it mean Qt Quick Controls 1 in general (so that 1.4 stays in Qt) or actually all version 1 controls?

    Can you rephrase that question? I have no idea what you mean.

    Deprecated means roughly "it won't be developed further, only bug fixes will be done, you should not use it in new projects". QtQuick.Controls 1 will not be removed from Qt (not right now at least).



  • So here the excerpt from the Release notes:

    Deprecated Modules
    
    The following modules are part of Qt 5.11 release, but deprecated and considered for removal in subsequent releases of Qt:
    
    Qt Script
    Qt Quick Controls 1
    

    I meant whether this means that QtQuick.Controls 1.0 will be removed or whether also QtQuick.Controls 1.4 will be removed (most likely it means QtQuick.Controls 1.x).

    My situation: I am developing a desktop application which will be released in approx. 1.5 years. For my application, I want to use the SplitView, which is in QtQuick.Controls 1.4. I guess that e.g. in 5.12 or 5.13 new useful features for QtQuick.Controls 2.x will be introduced. However, I am worried, that I will not be able to use SplitView anymore, as it is deprecated already in 5.11 and might be removed e.g. in 5.12 or 5.13.



  • So for me especially "you should not use it in new projects" is relevant. However, there seems to be no alternative for SplitView in QtQuick.Controls 2, right?


  • Moderators

    @maxwell31 said in Qt 5.11: Quick Controls 1 deprecated:

    So for me especially "you should not use it in new projects" is relevant. However, there seems to be no alternative for SplitView in QtQuick.Controls 2, right?

    The whole module will be removed.

    However, that's not going to happen soon. Take QtScript as an example: it is deprecated since Qt 5.0, yet it is still shipped with Qt today. For more info, check the Qt mailing list where this was discussed in depth. http://lists.qt-project.org/pipermail/development/2018-February/032073.html



  • Thanks for the link. I guess it makes complete sense to remove Quick Controls 1. I just hope they will implement features like SplitView and TreeView in QC2 then.



  • @maxwell31 said in Qt 5.11: Quick Controls 1 deprecated:

    Thanks for the link. I guess it makes complete sense to remove Quick Controls 1. I just hope they will implement features like SplitView and TreeView in QC2 then.

    Agree, I also think that TreeView and TableView in Qt Quick Controls 1 are still far from satisfactory for use currently.


  • Moderators

    As mentioned in the mail conversation I linked to: most of these missing components are either planned or already being worked upon.



  • TableView yes, but I missed TreeView and SplitView.



  • You should be safe using Qt Quick Controls 1. There's still a lot of QQC1 based projects out there. The Qt project cannot just go and remove something that breaks all these projects, not until the next major version is released (no immediate plans according to my knowledge). In fact, announcing QQC1 deprecated doesn't really change anything. It just reflects the reality that QQC1 hasn't been actively developed for over 3 years now. Only critical bugs and blockers have gained any attention, and will continue to do so regardless of the deprecation.


Log in to reply