Summary on the use of QT SQLite Databases

Source: Internet
Author: User

First, I developed QT. I mounted a virtual machine through a board and then accessed the shared directory between the PC and the virtual machine through the smb service. It is really good to use databases to do projects in the past few days. Of course, the best choice is to use the SQLite database that comes with QT to do this. So I created a simple small program in the XP system with qtcreator, run the experiment and try the following:

Click the "View" button to add a piece of information, which can be easily implemented on the PC. However, on the arm dinner Board, an error is always reported when the database can be opened but the insert operation is executed, I thought of everything I could think of. 1. modified the database permissions, 2. Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/trolltech/QtEmbedded-4.7.0-arm/plugins/sqldrivers, the path of the SQLite library is also added, but the running result is the same. The error message is that the database is not opened but the dynamic library exceeds the link Queue (which is not good in English. Later, I decided to adopt the second choice. I ran the SQLite plug-in on the arm-board Linux system and ended in failure (but I got a lot of inspiration, as described in the following blog post ), however, the method I came up with is a good sqlitedemo.
Run on the board, but the SQL statement still does not work. The error message is that the database fails to be opened, but the next decision is made. The file system and kernel are re-burned, and the result is still not good, at the edge of the crash, I asked the boss for advice. After a while, I put the generated executable file in the root directory! I can perform various operations on the database. I also put my own small QT SQLite demo in the root directory and the results were successfully run. It's strange! Some people on the Internet say that the friendly arm board does not provide good support for databases. I almost ran away from this question and should criticize myself.

 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.