Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将 QVariant 变量的类型转换为 SQLite 数据类型的 QString。看来,QSqlDriver 应该这样做,但我找不到任何这种转换的方法。
好的,我刚刚创建了带有 switch-case 结构的方法来为每个 QVariant::Type 返回 QString 值...