Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. connection to emitter, doesn't affect QML elements
Forum Updated to NodeBB v4.3 + New Features

connection to emitter, doesn't affect QML elements

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 264 Views 1 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
    Shadow.01
    wrote on last edited by
    #1

    Dear users,
    in my QML view I have a connection to an emitter. The syntax is something like the following. The really strange thing is that, if I put inside the onEvent section a console.log with, i.e., the emitted value, all works perfectly. If I put an any instruction that affect a QML element (also not related to the emitted value, as in the following example), nothing happens. Why? Thank you very much!

    (...some QML elements...)
    
    Connections {
                target: myengine 
    
                onInitProgress: {
    
                    console.log(progress);
                    labelCount.text = "test";
    
                    
                }
            }
    
    (...some QML elements...)
    
    raven-worxR 1 Reply Last reply
    0
    • S Shadow.01

      Dear users,
      in my QML view I have a connection to an emitter. The syntax is something like the following. The really strange thing is that, if I put inside the onEvent section a console.log with, i.e., the emitted value, all works perfectly. If I put an any instruction that affect a QML element (also not related to the emitted value, as in the following example), nothing happens. Why? Thank you very much!

      (...some QML elements...)
      
      Connections {
                  target: myengine 
      
                  onInitProgress: {
      
                      console.log(progress);
                      labelCount.text = "test";
      
                      
                  }
              }
      
      (...some QML elements...)
      
      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Shadow-01
      how does the emitting of the signal look like?
      how do you create "myengine", anything special here?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Shadow.01
        wrote on last edited by
        #3

        Thank you very much for the reply, the question was partially solved. Now I post one other but, in according to your reply, more detailed. Thanks again for the reply.

        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