What is a title bar9/6/2023 Return QWidget::winEvent(pMessage, decided to draw everything into a picture and blit this picture on the screen. Paint.fillRect(rect(), draw the window frame, you have to overwrite WM_NCPAINT on Widget::winEvent(MSG* pMessage, long *result) QLinearGradient grad(0,0,0,rect().height()) QPainter paint(this) paint.fillRect(rect(), QColor(0,180,0)) This is my simple widget, just a bit of a Gradient Widget::paintEvent(QPaintEvent*) Ok, I have one solution, although it's not the best and currently does not do the Application icon and the Titlebar buttons, but I'm sure, it will also be solvable.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |