I\'m quite new to qt and c++ and I\'ve encountered a problem that I can\'t seem to figure out. I\'m wanting to open a frameless and transparent window when I click a button
setWindowFlags(Qt::Widget | Qt::FramelessWindowHint);
setParent(0); // Create TopLevel-Widget
setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_TranslucentBackground, true);
setAttribute(Qt::WA_PaintOnScreen); // not needed in Qt 5.2 and up