qt5.1.1 mysql ubuntu QMYSQL driver not loaded

后端 未结 2 996
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 06:34

I\'m trying to access mysql using Qt5.1.1 but i am getting the error the error below. I also searched a lot on google but unable to fix it.Please suggest me a solution so

2条回答
  •  爱一瞬间的悲伤
    2020-12-16 06:38

    If you are Ubuntu linux OS, you can install library:

    mic@ubt: ~$ apt-cache search libqt4-sql-mysql
    libqt4-sql-mysql - Qt 4 MySQL database driver
    
    mic@ubt: ~$ sudo apt-get install libqt4-sql-mysql 
    

提交回复
热议问题