I would like to animate a widget (QPushButon) to move across my application screen. For that I create a new button and using the QPropertyAnimation class and the property "geometry" of the button, I move it from top to down. The problem is that the button comes with the close, minimize, maximize buttons, etc. I don't want them to be there, nor the border that comes with the widget. What should I do ?
相关问题
- QML: Cannot read property 'xxx' of undefin
- QTextEdit.find() doesn't work in Python
- QT Layouts, how to make widgets in horizontal layo
- QT GUI freezes even though Im running in separate
- QGraphicsView / QGraphicsScene size matching
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- Is there a non-java, cross platform way to launch
- How to get a settings storage path in a cross-plat
- Why doesn't valgrind detect a memory leak in m
- Algorithm for maximizing coverage of rectangular a
- QTreeView remove decoration/expand button for all
- qt界面拥挤
You want to use the function
QWidget::setWindowFlags( Qt::WindowFlags )
.If you want to remove the maximize/minimize/close buttons, this should work for you:
setWindowFlags( Qt::CustomizeWindowHint );
Qt::CustomizeWindowHint
turns off all the default window hints, like the maximize, minimize, close buttons, and the title bar.Here's a list of all
Qt::WindowFlags
.