hmm..all I did was add a resource file, add prefix images, and then add file, and chose the file from the directory they're stored. I'm really new to this, so I appreciate any help..
this is what my window looks like when I double click the qrc file...
/Images
Resources/Images/Window_Skin_Color/Black_Window_Color.png
the file itself reads
<RCC>
<qresource prefix=" /Images">
<file>Resources/Images/Window_Skin_Colors/Black_Window_Skin_Color.png</file>
</qresource>
</RCC>
Here's the code for my header file
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
{
Q_OBJECT
public:
explicit MainWindow
(QWidget *parent
= 0);
~MainWindow();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
To copy to clipboard, switch view to plain text mode
.pro
#-------------------------------------------------
#
# Project created by QtCreator 2011-11-23T17:10:55
#
#-------------------------------------------------
QT += core gui
TARGET = RPG_Suit
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
RESOURCES += \
Resources.qrc
#-------------------------------------------------
#
# Project created by QtCreator 2011-11-23T17:10:55
#
#-------------------------------------------------
QT += core gui
TARGET = RPG_Suit
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
RESOURCES += \
Resources.qrc
To copy to clipboard, switch view to plain text mode
Bookmarks