Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtQuick 6.4
Forum Updated to NodeBB v4.3 + New Features

QtQuick 6.4

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 291 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srinath_ramamoorthy_17
    wrote on last edited by srinath_ramamoorthy_17
    #1

    Hi,
    In windows OS with VS2022

    I am currently using QT6 before I had QT5. I have warning every time.

    QT6 waring
    Using a Component as the root of a QML document is deprecated: types defined in qml documents are automatically wrapped into Components when needed.

    how can i get rid of this can some one give me some example?

    For Example I have this :

    import QtQuick 6.4
    import 'popup' as Popup
    
    Component {
        id: screenConnection
    
        Item {
            anchors.fill         : screenConnection
            Component.onCompleted: screens.openProgress()
        }
    }
    
    

    or

    Component {
        id: screenSelection
    
        Item {
            Text {.......
    

    In some cases,

    Component {
        id: screenMainTree
    
        Row {
            spacing: 50....
    

    or

    Component {
        id: screenStart
    
        Item {...
    
    S 1 Reply Last reply
    0
    • S srinath_ramamoorthy_17

      Hi,
      In windows OS with VS2022

      I am currently using QT6 before I had QT5. I have warning every time.

      QT6 waring
      Using a Component as the root of a QML document is deprecated: types defined in qml documents are automatically wrapped into Components when needed.

      how can i get rid of this can some one give me some example?

      For Example I have this :

      import QtQuick 6.4
      import 'popup' as Popup
      
      Component {
          id: screenConnection
      
          Item {
              anchors.fill         : screenConnection
              Component.onCompleted: screens.openProgress()
          }
      }
      
      

      or

      Component {
          id: screenSelection
      
          Item {
              Text {.......
      

      In some cases,

      Component {
          id: screenMainTree
      
          Row {
              spacing: 50....
      

      or

      Component {
          id: screenStart
      
          Item {...
      
      S Offline
      S Offline
      srinath_ramamoorthy_17
      wrote on last edited by srinath_ramamoorthy_17
      #2

      @srinath_ramamoorthy_17 said in QtQuick 6.4:

      if I change to:

      import QtQuick 6.4  
      import 'popup' as Popup  
        
      Item {  
          id: screenConnection  
          anchors.fill: screenConnection  
        
          Component.onCompleted: screens.openProgress()  
      }  
      

      this fix skip my fist screen

      S jeremy_kJ 2 Replies Last reply
      0
      • S srinath_ramamoorthy_17

        @srinath_ramamoorthy_17 said in QtQuick 6.4:

        if I change to:

        import QtQuick 6.4  
        import 'popup' as Popup  
          
        Item {  
            id: screenConnection  
            anchors.fill: screenConnection  
          
            Component.onCompleted: screens.openProgress()  
        }  
        

        this fix skip my fist screen

        S Offline
        S Offline
        srinath_ramamoorthy_17
        wrote on last edited by
        #3

        @jsulm can you help here

        1 Reply Last reply
        0
        • S srinath_ramamoorthy_17

          @srinath_ramamoorthy_17 said in QtQuick 6.4:

          if I change to:

          import QtQuick 6.4  
          import 'popup' as Popup  
            
          Item {  
              id: screenConnection  
              anchors.fill: screenConnection  
            
              Component.onCompleted: screens.openProgress()  
          }  
          

          this fix skip my fist screen

          jeremy_kJ Offline
          jeremy_kJ Offline
          jeremy_k
          wrote on last edited by
          #4

          @srinath_ramamoorthy_17 said in QtQuick 6.4:

          Item {  
              id: screenConnection  
              anchors.fill: screenConnection  
          

          What is the point of anchoring an item to itself?

          Asking a question about code? http://eel.is/iso-c++/testcase/

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved