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. is this code good for error detection in qml?
Qt 6.11 is out! See what's new in the release blog

is this code good for error detection in qml?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 394 Views 2 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.
  • W Offline
    W Offline
    wiadro
    wrote on last edited by
    #1

    Hi, i was wondering if this is the correct way to catch errors? i seem to be getting nothing but my program still doesnt function

    Item {
        signal errorOccurred(string errorString)
    
        onErrorOccurred: {
            console.log("Error occurred:", errorString);
        }
    }
    
    sierdzioS 1 Reply Last reply
    0
    • W wiadro

      Hi, i was wondering if this is the correct way to catch errors? i seem to be getting nothing but my program still doesnt function

      Item {
          signal errorOccurred(string errorString)
      
          onErrorOccurred: {
              console.log("Error occurred:", errorString);
          }
      }
      
      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Do you emit your signal anywhere? If not, then your slot will never be called.

      (Z(:^

      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