how to specify the WFlags in QWidget....
hi...
can anyone say me how to specify the WFlags.i have a derived class from QWidget that i need to set as tool window as did as follows:
class keyclass : public QWidget
{
Q_OBJECT
public:
keyclass( QWidget *parent=0, const char *name=0,WStyle_Customize | WStyle_Tool);
private slots:
void a();
}.
but it showed me the following errors:
error: ‘WStyle_Customize’ is not a type
error: expected ‘,’ or ‘...’ before ‘|’ token
error: default argument missing for parameter 3 of ‘keyclass::keyclass(QWidget*, const char*, int)’
is this correct...?
Re: how to specify the WFlags in QWidget....
Quote:
Originally Posted by
sar_van81
keyclass( QWidget *parent=0, const char *name=0,WStyle_Customize | WStyle_Tool);
[...]
is this correct...?
No, it should be:
Code:
keyclass
( QWidget *parent
= 0,
const char *name
= 0, WFlags f
= WStyle_Customize | WStyle_Tool
);
Re: how to specify the WFlags in QWidget....
hi...
thank you for the reply. i set flags by
WFlags f= WType_Popup;
itself.