Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Spanish
  4. duda con el Id de sqlite
Forum Updated to NodeBB v4.3 + New Features

duda con el Id de sqlite

Scheduled Pinned Locked Moved Unsolved Spanish
2 Posts 2 Posters 555 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.
  • C Offline
    C Offline
    Casino
    wrote on last edited by
    #1

    Tengo la db sqlite creada, inserto registros, la puedo borrar toda, pero no puedo actualizar por lo siguiente:
    Si en el mainwindow.cpp coloco un numero en ..Where Id = 5...todo bien, pero cuando ejecute el programa, ese 5 por ejemplo lo tengo que leer de algun lado, ya sea un lineedit o un file = itemrow(), pero cuando pongo...where Id = file..., o ....where Id = 'file' no hay mensaje de error, dice que el registro se ha actualizado pero no es asi...

    Pablo J. RoginaP 1 Reply Last reply
    0
    • C Casino

      Tengo la db sqlite creada, inserto registros, la puedo borrar toda, pero no puedo actualizar por lo siguiente:
      Si en el mainwindow.cpp coloco un numero en ..Where Id = 5...todo bien, pero cuando ejecute el programa, ese 5 por ejemplo lo tengo que leer de algun lado, ya sea un lineedit o un file = itemrow(), pero cuando pongo...where Id = file..., o ....where Id = 'file' no hay mensaje de error, dice que el registro se ha actualizado pero no es asi...

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @Casino

      Si en el mainwindow.cpp coloco un numero en ..Where Id = 5...todo bien, pero cuando ejecute el programa, ese 5 por ejemplo lo tengo que leer de algun lado, ya sea un lineedit o un file = itemrow(), pero cuando pongo...where Id = file..., o

      ¿podrías mostrar tu código?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      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