In-Depth Tutorials: Step-by-step guides that cover a wide range of topics, from Qt fundamentals to advanced techniques. Learn how to create responsive UIs, manage signals and slots, work with databases, and more! Problem And Solutions: We Listen the problems of Qt Developer and give him the proper and accurate solution for applications development.
🔔 Subscribe to Qt With Ketan and Hit the Bell Icon to stay updated with our latest videos! Join our growing community of Qt C++ enthusiasts and embark on an exciting journey of software development excellence.
🌐 Let's Connect: Follow us on social media instagram.com/qtwithketan for additional content, updates.
📧 Business Inquiries: For collaboration opportunities, sponsorship, or business inquiries, please contact us via email. Email Address : qtwithketan@gmail.com
Thanks for watching my video. Yes i can make that kind of project, i will figure out for it and make video on it. You can also drop your suggestion which kind of project you want to see.
@qtwithketan Thank you for your reply! (My reply disappears so I had to post) 1) Yes, I copied libmysql.dll file into my C:/Qt/6.7.2/mingw_64/bin directory. Cleaned and recompiled the project as it compiles successfully, I believe the compiled exe cannot find the mysql driver library somehow. 2) I also added C:/Qt/6.7.2/mingw_64/bin to PATH of system environment vaiable. 3) As I told you before, I copied qsqlmysql.dll to the same location as my exe 4) I tried dependency walker but it did not run on my Windows 11 I believe the drivers are successfully installed as I can see both QMARIADB QMYSQL on my driver list after I followed your steps when I use "qDebug() << QSqlDatabase::drivers();" My CMake has "find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Sql)" and "target_link_libraries(my_project PRIVATE Qt${QT_VERSION_MAJOR}::Sql)" Is there any configuration that I need to do from the project? Moreover, MYSQL client is not running while my exe is running as well. Do you think this could be the reason or do you have any more ideas? Thanks.
I got your problem, but Did you copy libmysql.dll file into your C:/Qt/6.7.2/mingw_64/bin directory ? did you run your application in Release mode ? Also try to copy your sqldriver plugin directory in your build directory(Application run directory) and libmysql.dll file too.
Hi, thank you for your video. I have managed to install the driver but I am getting an error like this when I try to connect to MySQL database: "QSqlDatabase: MYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMIMER QMARIADB QMYSQL QODBC QPSQL QList("QSQLITE", "QMIMER", "QMARIADB", "QMYSQL", "QODBC", "QPSQL") Failed to connect to database: "Driver not loaded Driver not loaded"" I checked C:\Qt\6.7.2\mingw_64\plugins\sqldrivers PATH and I can see the qsqlmysql.dll file created after I ran the commands which are described in the video. I also checked the C:\Qt\6.7.2\Src\qtbase\src\plugins\sqldrivers\mysql PATH and I can see a lot of files are generated. I even copied qmysql.dll file to the same location as with my application. Do you have an idea of what is going on?
@@qtwithketan thank you for your reply! After your suggestion, I did copy libmysql.dll file into my C:/Qt/6.7.2/mingw_64/bin directory. Did clean/rebuilt the project but I saw the same error. Also, I added C:/Qt/6.7.2/mingw_64/bin to PATH environment variable of the system. I believe that since when I use the code "qDebug() << QSqlDatabase::drivers();" now I can see both QMARIADB and QMYSQL drivers, I think they are installed successfully. However, I believe I am missing something in my client project maybe in the configuration. I am not running MySQL client on my machine while the client app is running. Also, my CMake file has "find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Sql)" and "target_link_libraries(my_project PRIVATE Qt${QT_VERSION_MAJOR}::Sql)". Maybe I need to do some configuration so my client app knows where the DLL is although I copied the qmysql.dll library in the same location as my exe app is. Do you still have more ideas? Thanks
@@qtwithketan Thank you for your reply! 1) Yes, I copied libmysql.dll file into my C:/Qt/6.7.2/mingw_64/bin directory. Cleaned and recompiled the project as it compiles successfully, I believe the compiled exe cannot find the mysql driver library somehow. 2) I also added C:/Qt/6.7.2/mingw_64/bin to PATH of system environment vaiable. 3) As I told you before, I copied qsqlmysql.dll to the same location as my exe 4) I tried dependency walker but it did not run on my Windows 11 I believe the drivers are successfully installed as I can see both QMARIADB QMYSQL on my driver list after I followed your steps when I use "qDebug() << QSqlDatabase::drivers();" My CMake has "find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Sql)" and "target_link_libraries(my_project PRIVATE Qt${QT_VERSION_MAJOR}::Sql)" Is there any configuration that I need to do from the project? Moreover, MYSQL client is not running while my exe is running as well. Do you think this could be the reason or do you have any more ideas? Thanks.
@@qtwithketan Thank you for your reply! 1) Yes, I copied libmysql.dll file into my C:/Qt/6.7.2/mingw_64/bin directory. Cleaned and recompiled the project as it compiles successfully, I believe the compiled exe cannot find the mysql driver library somehow. 2) I also added C:/Qt/6.7.2/mingw_64/bin to PATH of system environment vaiable. 3) As I told you before, I copied qsqlmysql.dll to the same location as my exe 4) I tried dependency walker but it did not run on my Windows 11 I believe the drivers are successfully installed as I can see both QMARIADB QMYSQL on my driver list after I followed your steps when I use "qDebug() << QSqlDatabase::drivers();" My CMake has "find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Sql)" and "target_link_libraries(my_project PRIVATE Qt${QT_VERSION_MAJOR}::Sql)" Is there any configuration that I need to do from the project? Moreover, MYSQL client is not running while my exe is running as well. Do you think this could be the reason or do you have any more ideas? Thanks.
@@qtwithketan I started my project by going through yours. I was in hurry so I decided to go with Cmake. Does it will create problem when I'll go further more? If yes can I change now, like cmake to qmake? I designed half of the project.
Good video! I have a question about QComboBox in android. I used Qt 6.4.2. C++ i build to android mobile and its working, But if i close the QComboBox dropdown menu with the mobile back navigator button, after that the drop down menu nat pop up anymore and the QComboBox start not working. Here is my code below (i red that i have to set noFocus policy but still dont working): #include <QApplication> #include <QComboBox> #include <QWidget> #include <QVBoxLayout> #include <QKeyEvent> class MyWidget : public QWidget { Q_OBJECT public: MyWidget() { QVBoxLayout *layout = new QVBoxLayout(this); comboBox = new QComboBox(this); for (int i = 0; i < 10; ++i) { comboBox->addItem(QString("Item %1").arg(i)); } comboBox->setFocusPolicy(Qt::NoFocus); layout->addWidget(comboBox); setLayout(layout); } private: QComboBox *comboBox; }; int main(int argc, char *argv[]) { QApplication app(argc, argv); MyWidget w; w.show(); return app.exec(); } #include "main.moc" Thank you for your help!
@@qtwithketan Yeah I asked already this question there with this title: "QCombobox stop working after back navigation on android in Qt 6.4.2 C++" but still no answer :(
im using qt 15.2 for some reason and i cant update to qt v 6 and i understand that there is no cmake or qt-cmake.bat file in bin where you used call so how i can run this command in qt 15.2 i would be glad if you can help me
Please I have a serious on Qt, when I finish to connect it on my SQL database and try I receive this error message on my command line " SSL connection error : unknown error number QMYSQL : unable to connect "
Thanks for watching my video. you can follow this video and i am sure you will get solution. Follow the below link. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-f-GC-b-Gtj8.html
Please I have a serious on Qt, when I finish to connect it on my SQL database and try I receive this error message on my command line " SSL connection error : unknown error number QMYSQL : unable to connect "
@@XbetOne Did you setup the OpenSSL and set the Path In Environment Variable ? Just Try to disable your System Anti-virus and also firewall and check it once.
how can i make a flowchart creator with pyqt6, something like scratch or a block diagram creator? i know i would need a sidebar to drag things from and a canvas to drag things to.. but how do i even make that?
Thanks for watching my video. i am not sure how to do all those things with PyQt so i can't answer you but i will do some research on those things and revert you soon.
Hi, there is no error in my code but I can not see the map. I checked the plugins in sdk but there is no osm plug-in in QLocation folder. I use qt in 5.14 version. How to handle with this problem?
Thanks for watching my video. Did you follow all steps which shown in video ? Did you getting any runtime errors like TLS initialization failed ? Did you install Qt Location and Positioning modules.?
@@qtwithketan Yes, I did. There is no runtime error. Actually, I checked the maintaeance tool but there is no "Additional libraries" section where Qlocation and QPositioning are. I use intranet not internet and mainteance tool not seem green. Should I connected to internet? Perhaps, because of these I cannot see the map. How can I be sure these modules are installed exactly?
bro, iam getting this errors.. C:\opencv4.5.1_MinGW\3rdparty\ade\ade-0.1.1f\sources\ade\source\alloc.cpp: In function 'void ade::aligned_free(void*)': C:\opencv4.5.1_MinGW\3rdparty\ade\ade-0.1.1f\sources\ade\source\alloc.cpp:40:29: error: '_aligned_free' was not declared in this scope return _aligned_free(ptr); ^ C:\opencv4.5.1_MinGW\3rdparty\ade\ade-0.1.1f\sources\ade\source\alloc.cpp:40:29: error: return-statement with a value, in function returning 'void' [-fpermissive] modules\CMakeFiles\ade.dir\build.make:62: recipe for target 'modules/CMakeFiles/ade.dir/__/3rdparty/ade/ade-0.1.1f/sources/ade/source/alloc.cpp.obj' failed mingw32-make[2]: *** [modules/CMakeFiles/ade.dir/__/3rdparty/ade/ade-0.1.1f/sources/ade/source/alloc.cpp.obj] Error 1 CMakeFiles\Makefile2:1954: recipe for target 'modules/CMakeFiles/ade.dir/all' failed mingw32-make[1]: *** [modules/CMakeFiles/ade.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: *** [all] Error 2 can you please share the full file opencv_MinGW folder, as i too have installed same cmake and same opencv version.
Thanks for watching my video. Yes i can share but full openCV_MinGW directory with binaries size is more then 1GB. i will try to upload the files at somewhere and share you downloadable link.
Help me fix this bug D:\Qt\cayvcl\build\Desktop_Qt_6_7_1_MinGW_64_bit-Debug\ui_mainwindow.h:19: error: qcameraviewfinder.h: No such file or directory In file included from ..\..\mainwindow.cpp:2: ./ui_mainwindow.h:19:10: fatal error: qcameraviewfinder.h: No such file or directory 19 | #include <qcameraviewfinder.h> | ^~~~~~~~~~~~~~~~~~~~~ Pls bro 🥺🥺🥺
To anyone out there, i had heaps of trouble compiling with CMake! Compile with qmake in Qt Creator instead, this tutorial fixed my two week struggle. THank you!!!! error if u get the following: "compiled CV_VERSION" "code execution cannot proceed because opencv_world4100.dll was not found" FIX: COPY FILES world4100.dll and world4100d.dll from C:\tools\opencv\build\x64\vc16\bin PASTE INTO C:\tools\opencv\build\x64\vc16\lib (tools as i used choco to install) SHOULD WORK!
Sorry buddy, your accent makes it impossible to follow the video. Perhaps you can get a higher quality microphone to help somewhat? I understand that changing an accent overnight is not possible but the english title vs the spoken english in the video makes this video clickbait. Jittery mouse and flicking the cursor around after each click is also supremely annoying. Please take this as positive criticism, as that is the intention.
feedback taken, and i will try to improve my english speaking skills and also i will try to arrange some high quality microphone. And Thanks for your genuine support and feedback.
Thanks for watching my video. it dosen't take more time when your code is not lengthy but yes it take more time when code is lengthy and i am also facing the problem about it.
Thanks for watching my video. now you can see the videos in correct order of playlist Qt With OpenCV Playlist : ru-vid.com/group/PLh0cogPqXcJNEhszlaONshdubdDOF8GRh
Hi, I'd be intrested in getting the code of this application. I'd me more interested on "not using qml at all". Di you think an all QtWidgets approach is possible?
Thanks for watching my video. i hope you liked my videos. in this application i also use QML for display Map, Route And Location Marker. so without QML i think is quite hard to do this.
Thanks for your videos, I really appreciate your work! Is it possible to connect ip camera with Qt and don't use other libraries such as opencv? I've read about QNetwotk, but it didn't help so much and I didn't find any solution without using libraries. 😔
Thanks for watching my video. Glad you like my video. Right now i don't have IP camera to check so i will not give you any wrong way or solution. Try to readout following links: doc.qt.io/qt-5/qmediacontent.html#details stackoverflow.com/questions/30494319/qt-stream-ip-camera-video