I'll post this in newbie section myself

I inherit from a class that inherits from QMainWindow
this class calls upon the constructor of QMainWindow, now there is 1 thing I need to change to the flags of the mainwindow so I call the constructor of my upperclass
and afterwards I set the flags with setWFlags but it doesn't seem to do anything


This is the super class constructor which I call
Qt Code:
  1. //-----------------------------------------------------------------------------
  2. vgui_qt_window::vgui_qt_window(int w, int h, const char* title)
  3. : QMainWindow(0, "vgui_qt_mainwindow_without_menu",
  4. Qt::WStyle_Customize | Qt::WDestructiveClose |
  5. Qt::WStyle_NormalBorder | Qt::WStyle_SysMenu |
  6. Qt::WStyle_MinMax),
  7. statusbar (this),
  8. use_menubar(false),
  9. use_statusbar(true)
  10. {
  11. setup_widget(w, h, title);
  12. }
To copy to clipboard, switch view to plain text mode 

This is my constructor

Qt Code:
  1. Tgui_qt_window::Tgui_qt_window(int w, int h, const char* title, bool alwaysOnTop)
  2. : vgui_qt_window(w,h,title)
  3. {
  4. this->setWFlags(Qt::WStyle_Customize | Qt::WDestructiveClose |
  5. Qt::WStyle_NormalBorder | Qt::WStyle_SysMenu |
  6. Qt::WStyle_MinMax | QT::WStyle_StaysOnTop);
  7. }
To copy to clipboard, switch view to plain text mode