Sounds to be an easy issue...
Is this what you intented to do
class myLabel
: public QLabel{public:
myLabel
(QWidget* parent
= 0,
const char* name
= 0): {}
~myLabel(){};
};
int main( int argc, char ** argv )
{
myLabel l;
l.setCaption( "Qt Example - MyLabel" );
l.show();
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}
class myLabel : public QLabel{
public:
myLabel(QWidget* parent = 0, const char* name = 0):
QLabel(parent, name)
{}
~myLabel(){};
};
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
myLabel l;
l.setCaption( "Qt Example - MyLabel" );
l.show();
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}
To copy to clipboard, switch view to plain text mode
The label is moved and also can be resized
Bookmarks