Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Persian
  4. توسعه اس کیو لایت با فایل ای پی کی
Forum Update on Monday, May 27th 2025

توسعه اس کیو لایت با فایل ای پی کی

Scheduled Pinned Locked Moved Unsolved Persian
1 Posts 1 Posters 1.3k 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.
  • behruz montazeriB Offline
    behruz montazeriB Offline
    behruz montazeri
    wrote on last edited by behruz montazeri
    #1

    اینجا من سوال کردم ولی جواب نگرفتم لطفا کمک کنید
    این فایل .pro هست`

    ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
    
     deployment.files += Poem.db
     deployment.path = /android/assets
     INSTALLS += deployment
    

    واین کانکشن فایل :

    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
    db.setDatabaseName("Poem.db");
    QFile dfile("assets:/Poem.db");
    if (dfile.exists())
    {
        dfile.copy("./Poem.db");
        QFile::setPermissions("./Poem.db",QFile::WriteOwner |     QFile::ReadOwner);
    
     }
    
    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