简体   繁体   中英

Drawing static Line on Pyqt Widget

I'm not a programmer but i'd like to programming using pyqt that can apply for some engineering application. So, I want to have a widget that include the graphic (as attached picture) and some other widget such as: textbox, button, etc for user to input or select but I can not figure out which widget or class to make it.

Could you have any advise for this case (drawing using qt designer or code directly is ok)

ui图片

You can display pictures with QLabel 's

label = QtGui.QLabel()
pixmap = QtGui.QPixmap('/path/to/image.png')
label.setPixmap(pixmap)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM