Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 求助Sqlite库查不到数据库中的表格
Qt 6.11 is out! See what's new in the release blog

求助Sqlite库查不到数据库中的表格

Scheduled Pinned Locked Moved Solved Chinese
2 Posts 1 Posters 708 Views
  • 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.
  • A Offline
    A Offline
    Amyhuo
    wrote on last edited by
    #1

    头文件:
    c2747b57-12f5-4abb-ba2f-6828ae2b28d1-image.png
    主程序中代码
    ae0ebc56-30b7-4641-8c24-b723446e12ad-image.png
    Navicat创建的连接
    4992a1c8-4d9a-45b5-9eee-9ca98ea5aed1-image.png
    输出状态:
    851d881b-b1e4-47c9-ac06-27f5424fcc0f-image.png
    新手学数据连接卡壳了,请教一下大佬们

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Amyhuo
      wrote on last edited by
      #2

      问题已经解决,是个基础错误,我没有将数据库文件放入Debug的项目文件夹中导致查找的数据库数据为空,将数据库放入后正常。f7d054e9-eda8-40d4-ac53-bde018319976-image.png

      1 Reply Last reply
      0
      • A Amyhuo has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved