3
A
回答
7
您只需在布局中的窗口一角添加一个QSizeGrip,使其保留在该角落。
QDialog *dialog = new QDialog(0, Qt::FramelessWindowHint);
QVBoxLayout *layout = new QVBoxLayout(dialog);
// To remove any space between the borders and the QSizeGrip...
layout->setContentsMargins(QMargins());
// and between the other widget and the QSizeGrip
layout->setSpacing(0);
layout->addWidget(new QTextEdit(dialog));
// The QSizeGrip position (here Bottom Right Corner) determines its
// orientation too
layout->addWidget(new QSizeGrip(dialog), 0, Qt::AlignBottom | Qt::AlignRight);
dialog->show();
相关问题
- 1. 在Qt中编辑无框窗口
- 2. Qt +无框窗口+合成
- 3. QT - 如何实现调整无框Widget?
- 4. 如何在Qt无框窗口中显示GStreamer视频?
- 5. 如何实现无字幕边框Aero窗口?
- 6. 用Qt制作无边框窗口
- 7. 如何让Qt图形出现在同一个窗口中?
- 8. Qt:如何在mouseMoveEvent中选择窗口框架?
- 9. 在Qt中,我如何使窗口成为当前窗口?
- 10. 如何实现在QT
- 11. 如何更改UI而无需在Qt中打开新窗口?
- 12. 如何编程调整控件像Qt Creator中(不使用QSizeGrip)
- 13. Qt的 - 在窗口模式对话框
- 14. 如何实现充当窗口消息框的jQuery对话窗口?
- 15. 在Symbian^3手机上实现平滑的Qt窗口切换
- 16. Qt:如何使半透明,无窗口,无铬窗口可拖动?
- 17. Applescript“无法实现窗口小型化”
- 18. 窗口内的QT窗口?
- 19. 如何实现Facebook聊天窗口?
- 20. 如何实现多窗口功能?
- 21. 如何实现多个弹出窗口?
- 22. 如何在Qt中实现OpenSSL?
- 23. Qt的 - 这是如何中心窗口
- 24. Qt显示从主窗口调用时无框对话框
- 25. Qt/win:showMaximized()在无框窗口上重叠任务栏
- 26. Qt/win:showMaximized()在无框窗口上重叠任务栏
- 27. 如何在弹出窗口的父窗口中实现反向计时器?
- 28. Qt无法提供实时“窗口正在被拖动”事件
- 29. 如何实现没有javascript的弹出窗口确认窗口
- 30. Ajax没有在窗口中实现listview