Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. error detection
    Log in to post

    • SOLVED Several errors after Qt update
      General and Desktop • update error detection reference error • • UnitScan  

      15
      0
      Votes
      15
      Posts
      592
      Views

      Hi @UnitScan, so please mark this topic as SOLVED too. Thanks!
    • SOLVED How to get QStandardItemModel error message
      General and Desktop • error detection • • JonB  

      6
      0
      Votes
      6
      Posts
      1195
      Views

      @JNBarchan QStandardItemModel uses QVariant as data. You can set and get any QVariant compatible data. There's no reason to have error handling because the class isn't meant for error prone data. See QStandardItem and QVariant for details. QSqlTableModel.lastError is specific to SQL. If you want to, you can implement your own runtime error handling in your model. QStandardItemModel is mostly meant for simple cases, but you can subclass it as the docs say: "Reimplement data() and setData() if you want to perform custom handling of data queries and/or control how an item's data is represented." Just add your own error handling mechanism. Or inherit from QAbstractItemModel if performance and low-level details are important. QSqlTableModel does that, adding SQL specific things, one of which is SQL error handling.
    • QtSerialPort does not detect parity error under linux
      General and Desktop • serial port space error detection parity mark • • ivanperino  

      11
      0
      Votes
      11
      Posts
      4250
      Views

      @kuzulis I used putty just to send data to my app. As you suggest, putty doesn´t detect parity errors.