How can i create a new QTextEdit (as a new window - not child) with some extra wflags?
The constructor doesn't allow for this - it looks like this:
Qt Code:
  1. QTextEdit::QTextEdit( QWidget *parent, const char *name ) : QScrollView( parent, name, WStaticContents | WRepaintNoErase | WResizeNoErase )
To copy to clipboard, switch view to plain text mode 
I could use QWidget::setWFlags, but it doesn't work:
Qt Code:
  1. class AAA : public QTextEdit
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. AAA::AAA(QWidget * parent) : QTextEdit(parent, "")
  7. {
  8. setWFlags(WType_TopLevel | WNoAutoErase | WStyle_Customize | WX11BypassWM | WStyle_StaysOnTop | WDestructiveClose);
  9.  
  10. setText("aaa");
  11. show();
  12. }
  13. };
  14.  
  15. AAA *a;
  16. a = new AAA(0);
To copy to clipboard, switch view to plain text mode 
Qt creates normal window