728x90 ๐จ๐ผ๐ป๊ฐ๋ฐ/PyQt9 PyQt - ํ ์ด๋ธ ํค๋ ๋ฐฐ๊ฒฝ ์ ๋ณ๊ฒฝ self.table_invest = QtWidgets.QTableWidget(self.tab) self.table_invest.setStyleSheet('QTableWidget{\ncolor:black;}\nQHeaderView::section{background-color: rgb(23,33,43); };') ์ฐธ๊ณ : https://forum.qt.io/topic/87371/how-to-change-qtablewidget-header-color-and-selection-color 2022. 11. 8. PyQt - ๋ฆฌ์์ค ์ ์ฉํ๊ธฐ [๊ฒฝ๋ก] images/ โโ icon.png main.py resources.qrc [resources.qrc] images/icon.png [๋ฆฌ์์ค ํ์ผ ๋ณํํ๊ธฐ] pyrcc5 resources.qrc -o icon.py [main.py] import icon ... label=QLabel(Form) label.setPixmap( QPixmap(":/images/icon.png") ) # qrc์์ ์ ์ ๊ฒฝ๋ก๋ช label.resize(label.pixmap().width(), label.pixmap().height()) ... ์ถ์ฒ: https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=browniz1004&logNo=221373310.. 2022. 5. 31. PyQt - ๋๋ ํ ๋ฆฌ ๋ฐ ํ์ผ ๊ฒฝ๋ก ๋ถ๋ฌ์ค๊ธฐ(QFileDialog) from PyQt5.QtWidgets import * path = QFileDialog.getExistingDirectory() print(path) file = QFileDialog.getOpenFileName() print(file) ์ถ์ฒ: https://wikidocs.net/5247 1) QFileDialog ์ด๋ฒ ์ ์์๋ PyQt๊ฐ ์ ๊ณตํ๋ QFileDigalog ํด๋์ค์ ๋ํด ์์๋ณด๊ฒ ์ต๋๋ค. QFileDigalog๋ ๊ทธ๋ฆผ 16.43๊ณผ ๊ฐ์ด ์ฌ์ฉ์๊ฐ ํ์ผ์ด๋ ๋๋ ํฐ๋ฆฌ๋ฅผ ์ ํํ ... wikidocs.net 2022. 5. 19. PyQt - ์คํ์ผ์ํธ ๋ ํผ๋ฐ์ค https://doc.qt.io/archives/qt-4.8/stylesheet-reference.html#list-of-properties Qt Style Sheets Reference | Qt 4.8 Qt Style Sheets Reference Qt Style Sheets support various properties, pseudo-states, and subcontrols that make it possible to customize the look of widgets. The following table lists the Qt widgets that can be customized using style sheets: WidgetHow to St doc.qt.io ์ถ์ฒ: https://forum.. 2022. 5. 9. PyQt - ๊ฐ๋จํ๊ฒ ํ ๊ธ ์ค์์น ๋์์ธํ๊ธฐ QCheckBox::indicator:unchecked { image: url("switch_off.png"); } QCheckBox::indicator:checked { image: url("switch_on.png"); } ์ด๋ฏธ์ง๋ฅผ ์ด์ฉํด์ ํ ๊ธ ๋์์ธ ์ถ์ฒ: https://stackoverflow.com/questions/62363953/how-to-create-toggle-switch-button-in-qt-designer How to create toggle switch button in qt designer? I am trying to create toggle button in qt designer. I refer on internet also but i couldn't find how to .. 2022. 5. 7. PyQt - designer .ui๋ฅผ .py๋ก ๋ณํํ๊ธฐ pyuic5 -x sub.ui -o sub.py 2022. 5. 7. PyQt - ์๋์ฐ์ฐฝ ํฌ๋ช ํ๊ฒ ๋ง๋ค๊ธฐ [์์ ํฌ๋ช ํ๊ฒ ๋ง๋ค๊ธฐ] Form.setWindowFlags(QtCore.Qt.FramelessWindowHint) Form.setAttribute(QtCore.Qt.WA_TranslucentBackground) Form.setStyleSheet("background:transparent;") [๋ถํฌ๋ช ๋ ์ค์ ] Form.setWindowOpacity(0.5) ์ถ์ฒ: https://stackoverflow.com/questions/7667552/qt-widget-with-transparent-background Qt Widget with Transparent Background (I'm using PySide, but I think the answer would be the same/similar for .. 2022. 5. 7. PyQt - ํธ๋ ์ด(Tray) ๋ง๋ค๊ธฐ ๋ฐ ๋ฉ๋ด ์ถ๊ฐ from PyQt5.QtGui import QIcon trayIcon = QSystemTrayIcon(Form) icon = QIcon("icon.png") trayIcon.setIcon(icon) trayIcon.setToolTip('ํธ๋ ์ด ์์ด์ฝ ์ค๋ช ') trayIcon.setVisible(True) trayIcon.show() menu = QMenu() exitAction = menu.addAction('Exit') exitAction.triggered.connect(app.quit) trayIcon.setContextMenu(menu) ์ฐธ๊ณ : https://www.pythonguis.com/tutorials/system-tray-mac-menu-bar-applications-pyqt/ System.. 2022. 5. 7. PyQt - designer ์คํ์ผ์ํธ ์ถ๊ฐํ๊ธฐ ์ํ๋ ์์ ฏ ์ฐํด๋ฆญํ๊ณ styleSheet ๋ฐ๊พธ๊ธฐ ํด๋ฆญ โ์ด๋ฐ์์ผ๋ก border, :hover ๋ฑ ๋ค์ํ ์คํ์ผ์ํธ๋ฅผ ์ค์ ํ ์ ์์ ๋ฌธ๋ฒ์ CSS์ ๋์ผํ๋ฉฐ ๋ค๋ง ๊ธฐ๋ฅ์ ๋ ์ ๋ค. ์ฐธ๊ณ : https://blog.naver.com/PostView.naver?blogId=dhksrl0508&logNo=222344023916&parentCategoryNo=&categoryNo=232&viewDate=&isShowPopularPosts=false&from=postView PyQt StyleSheet๋ก Visual Studio UI๋ฅผ ๋ง๋ค์ด๋ณด์ ๋ง์ดํฌ๋ก์ํํธ๋ UI๋ฅผ ์ ๋ง ์ ๋ง๋๋ ๊ฒ ๊ฐ์ต๋๋ค. ํ๊ต ๊ณต๋ถ๋ก Visual C++ ์ค์ต์ ์งํํ๋๋ฐ, ์ฐ์ฐ... blog.naver.com 2022. 5. 7. ์ด์ 1 ๋ค์ 728x90