tWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) // here making the window frameless and topMost via qt tGeometry(960-label->width()/2,540-label->height()/2,label->width(),label->height()) //here I'm making my window appear in the center of my screen Label->setText("O") //I'm using an "O" as a crosshair until I can figure out how to display image transparency. Here is my code : (everything is in the main since im only testing the core functionalitys of my app, I've commented it extensively to try and make my problem more accessible) QApplication app(argc, argv) I've succesfully made my window topmost for everything except the games :/ The aim is to have a crosshair in some FPS games that doesn't provide one. I'm trying to make an application displaying a crosshair at the center of the screen and staying on top of everything else.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |