Hi JimDaniel,
I have tried using your example but why do I get errors like this?
Qt Code:
  1. src\blinkingicon.cpp:4: error: new types may not be defined in a return type
  2. src\blinkingicon.cpp:4: note: (perhaps a semicolon is missing after the definition of `BlinkingIcon')
  3. src\blinkingicon.cpp:4: error: return type specification for constructor invalid
  4. src\blinkingicon.cpp:10:35: warning: unknown escape sequence '\H'
  5. mingw32-make[1]: *** [build\host\blinkingicon.o] Error 1
  6. mingw32-make: *** [release] Error 2
To copy to clipboard, switch view to plain text mode 

The actual code i used is exactly the same as what you have given me, only difference is just that i split it into a .h and a .cpp... like this...

Qt Code:
  1. #ifndef __BLINKINGICON_H__
  2. #define __BLINKINGICON_H__
  3.  
  4. #include <QWidget>
  5. #include <QLabel>
  6.  
  7. class BlinkingIcon : public QWidget
  8. {
  9. Q_OBJECT
  10.  
  11. public:
  12. BlinkingIcon(QWidget * parent = 0);
  13. virtual ~BlinkingIcon();
  14.  
  15. private:
  16. QLabel * display_image;
  17. }
  18.  
  19.  
  20. #endif // __BLINKINGICON_H__
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #include "blinkingicon.h"
  2.  
  3. BlinkingIcon::BlinkingIcon(QWidget * parent)
  4. : QWidget(parent)
  5. {
  6. this->setWindowTitle(tr("My Blinking Icon"));
  7. this->resize(200, 200);
  8.  
  9. display_image = new QLabel(this);
  10. display_image->setPixmap(QPixmap("C:\HmiProject\test\nyjc.bmp"));
  11. display_image->adjustSize();
  12. }
  13.  
  14. BlinkingIcon::~BlinkingIcon(){}
To copy to clipboard, switch view to plain text mode 

Once again, thanks for your patient help given.

Hi wysota,
pardon me for my ignorance, but what does it mean by "The main difference is that a tristate QCheckBox has an indeterminate state." from the website? Is the example using an existing class QCheckBox, and giving it more functions to act as an indicator? the code... does it mean that the QCheckBox named indicator has a function indeterminateressed? I am having difficultity understanding the codes... Can you explain briefly?
Qt Code:
  1. QCheckBox::indicator:indeterminate:pressed {
  2. image: url(:/images/checkbox_indeterminate_pressed.png);
  3. }
To copy to clipboard, switch view to plain text mode 

Thanks!!