Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Portuguese
  4. Problema ao usar sql bindvalue no QT 5.1
Forum Updated to NodeBB v4.3 + New Features

Problema ao usar sql bindvalue no QT 5.1

Scheduled Pinned Locked Moved Portuguese
1 Posts 1 Posters 683 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.
  • D Offline
    D Offline
    diego
    wrote on last edited by
    #1

    o codigo abaixo funciona no qt 4.8 mas no 5.1 o bindvalue não faz a atribuição no lugar fica só "?"
    o "query.executedQuery()" retorna "SELECT image_id, name FROM backgrounds WHERE id = ?"

    @ QSqlQuery query(db);

    query.prepare(QString("SELECT image_id, name FROM backgrounds WHERE id = :id"));
    query.bindValue("id", id);
    
    query.exec();@
    
    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