<?xml version="1.0" encoding="UTF-8"?><ui version="4.0"> <class>testClass</class> <widget class="QMainWindow" name="testClass"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>558</width> <height>583</height> </rect> </property> <property name="windowTitle"> <string>test</string> </property> <property name="windowIcon"> <iconset resource="test.qrc"> <normaloff>:/test/Resources/titleicon.ico</normaloff>:/test/Resources/titleicon.ico</iconset> </property> <widget class="QWidget" name="centralWidget"> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap>labelicon.ico</pixmap> </property> </widget> </item> </layout> </widget> <widget class="QMenuBar" name="menuBar"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>558</width> <height>21</height> </rect> </property> </widget> <widget class="QToolBar" name="mainToolBar"> <attribute name="toolBarArea"> <enum>TopToolBarArea</enum> </attribute> <attribute name="toolBarBreak"> <bool>false</bool> </attribute> </widget> <widget class="QStatusBar" name="statusBar"/> </widget> <layoutdefault spacing="6" margin="11"/> <resources> <include location="test.qrc"/> </resources> <connections/></ui>
<RCC> <qresource prefix="test"> <file>Resources/titleicon.ico</file> </qresource></RCC>
[Paths]Plugins=.
QApplication app( argc, argv ); QDir::setCurrent(app.applicationDirPath()); app.setLibraryPaths(QStringList() << (QDir::currentPath() + "/plugins") << app.libraryPaths());
C++ (Qt) QStringList list_path; QDir dir = QDir(app.applicationDirPath()+"/plugins/"); list_path << dir.absolutePath () << app.libraryPaths (); app.setLibraryPaths( list_path );