Qt5 Tutorial Deploying to Windows - 2020
bogotobogo.com site search:
Short Note : Deploying Qt5 on Windows
Deploying Qt on Windows with dlls supposed to be simple but I struggled for sometime. So, I think it's not a bad idea putting a brief note here.
To make it short, the following files were my final distribution:
Everything worked with those files.
The C:\Qt\Qt5.1.1\5.1.1\msvc2012_64_opengl\plugins\platforms\qwindows.dll was the one that I had to spend time on it.
My system is Windows 8 64 bit, and I wanted Qt developed there using Qt Creator 2.8.1 to be ported my another Windows 7 64 bit laptop.
- In this deployment, my method was crude: adding one by one dll which dependency walker spit out.
- I ignored one instance of warning/error from dependency walker: ieshims.dll
- Then, I got this error on a target machine:"Failed to load platform plugin 'windows'."
- On the web, there were slew of suggestions on how to fix this: including setting "QT_QPA_PLATFORM_PLUGIN_PATH" and so on.
- When I look back, most of the advice were correct: they were all pointing to placing plugins\platforms\qwindows.dll to the right place.
- I tried some of the other fixes, but no luck there.
- Switching from QtCreator to Add-in VS 2012 did not make any difference.
- Now, I can clearly say that we need to place the platforms which has qwindows.dll in the same directory where our *.exe is. That's it, at least for shared library approach on Windows.
- I do not know why Qt changed the way of deployment, but it seems be related with porting to devices.
I haven't tried with static libs. I'll add more notes if similar thing happens.
Qt 5 Tutorial
- Hello World
- Signals and Slots
- Q_OBJECT Macro
- MainWindow and Action
- MainWindow and ImageViewer using Designer A
- MainWindow and ImageViewer using Designer B
- Layouts
- Layouts without Designer
- Grid Layouts
- Splitter
- QDir
- QFile (Basic)
- Resource Files (.qrc)
- QComboBox
- QListWidget
- QTreeWidget
- QAction and Icon Resources
- QStatusBar
- QMessageBox
- QTimer
- QList
- QListIterator
- QMutableListIterator
- QLinkedList
- QMap
- QHash
- QStringList
- QTextStream
- QMimeType and QMimeDatabase
- QFile (Serialization I)
- QFile (Serialization II - Class)
- Tool Tips in HTML Style and with Resource Images
- QPainter
- QBrush and QRect
- QPainterPath and QPolygon
- QPen and Cap Style
- QBrush and QGradient
- QPainter and Transformations
- QGraphicsView and QGraphicsScene
- Customizing Items by inheriting QGraphicsItem
- QGraphicsView Animation
- FFmpeg Converter using QProcess
- QProgress Dialog - Modal and Modeless
- QVariant and QMetaType
- QtXML - Writing to a file
- QtXML - QtXML DOM Reading
- QThreads - Introduction
- QThreads - Creating Threads
- Creating QThreads using QtConcurrent
- QThreads - Priority
- QThreads - QMutex
- QThreads - GuiThread
- QtConcurrent QProgressDialog with QFutureWatcher
- QSemaphores - Producer and Consumer
- QThreads - wait()
- MVC - ModelView with QListView and QStringListModel
- MVC - ModelView with QTreeView and QDirModel
- MVC - ModelView with QTreeView and QFileSystemModel
- MVC - ModelView with QTableView and QItemDelegate
- QHttp - Downloading Files
- QNetworkAccessManager and QNetworkRequest - Downloading Files
- Qt's Network Download Example - Reconstructed
- QNetworkAccessManager - Downloading Files with UI and QProgressDialog
- QUdpSocket
- QTcpSocket
- QTcpSocket with Signals and Slots
- QTcpServer - Client and Server
- QTcpServer - Loopback Dialog
- QTcpServer - Client and Server using MultiThreading
- QTcpServer - Client and Server using QThreadPool
- Asynchronous QTcpServer - Client and Server using QThreadPool
- Qt Quick2 QML Animation - A
- Qt Quick2 QML Animation - B
- Short note on Ubuntu Install
- OpenGL with QT5
- Qt5 Webkit : Web Browser with QtCreator using QWebView Part A
- Qt5 Webkit : Web Browser with QtCreator using QWebView Part B
- Video Player with HTML5 QWebView and FFmpeg Converter
- Qt5 Add-in and Visual Studio 2012
- Qt5.3 Installation on Ubuntu 14.04
- Qt5.5 Installation on Ubuntu 14.04
- Short note on deploying to Windows
Ph.D. / Golden Gate Ave, San Francisco / Seoul National Univ / Carnegie Mellon / UC Berkeley / DevOps / Deep Learning / Visualization