Home  >  Q&A  >  body text

mysql - 在QTableView中添加QCombox后,利用setData去修改其中数据后数据不能同步到数据库。

迷茫迷茫2742 days ago648

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 13:24:26

    From my immature experience, you can set a breakpoint hereif(value == "男"){
    When a girl chooses to be a boy, look at what the value is

    But to be honest, I highly doubt that your judgment of QVariant == QString is not very rigorous code.

    Hope it helps you

    reply
    0
  • Cancelreply