Qt Quick Controls 2 and TableView

前端 未结 2 2070
温柔的废话
温柔的废话 2021-01-02 03:11

Is it OK to use TableView in Quick Controls 2.0 application? This will require to have both imports:

import QtQuick.Controls 1.4
import QtQuick.Controls 2.0
         


        
2条回答
  •  梦毁少年i
    2021-01-02 03:29

    import QtQuick.Controls 1.4 as C
    import QtQuick.Controls 2.0
    
    C.TableView {  //controls 1.4
       Button {  //controls 2.0
       }
    }
    

    This will help you avoid any unwanted clashes between the two controls

提交回复
热议问题