---
# System prepended metadata

title: QMessageBox 內建訊息視窗
tags: [PyQt5]

---

QMessageBox 內建訊息視窗
===

### 彈出視窗類型

#### QMessageBox.information 

![](https://i.imgur.com/0FvKH26.png)


#### QMessageBox.question

![](https://i.imgur.com/6nll2bU.png)


#### QMessageBox.warning

![](https://i.imgur.com/59T4VHK.png)


#### QMessageBox.critical

![](https://i.imgur.com/uODqMFE.png)


![](https://i.imgur.com/xJbwC2R.png)


#### QMessageBox.about

![](https://i.imgur.com/EfPeKVY.png)


#### QMessageBox.aboutQt

![](https://i.imgur.com/Jw4V0Wa.png)


## Ref.

[https://zhuanlan.zhihu.com/p/29795495](https://zhuanlan.zhihu.com/p/29795495)

[https://www.tutorialspoint.com/pyqt5/pyqt5\_qmessagebox.htm](https://www.tutorialspoint.com/pyqt5/pyqt5\_qmessagebox.htm)



###### tags: `PyQt5`