{"id":39250,"date":"2024-11-02T03:38:50","date_gmt":"2024-11-02T03:38:50","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=39250"},"modified":"2024-11-26T06:42:01","modified_gmt":"2024-11-26T06:42:01","slug":"pyqt%ea%b0%9c%eb%b0%9c%ea%b0%95%ec%a2%8c-qabstracttablemodel%ea%b3%bc-qabstractlistmodel%eb%a1%9c-%ec%bb%a4%ec%8a%a4%ed%85%80-%eb%aa%a8%eb%8d%b8-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/39250\/","title":{"rendered":"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30"},"content":{"rendered":"<p>PyQt\ub294 Python \uc5b8\uc5b4\ub85c Qt \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\ub294 \uac15\ub825\ud55c GUI \ud234\ud0b7\uc785\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uad00\ub9ac\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ud074\ub798\uc2a4\uac00 <code>QAbstractTableModel<\/code>\uacfc <code>QAbstractListModel<\/code>\uc785\ub2c8\ub2e4. \uc774\ub4e4 \ud074\ub798\uc2a4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uc0dd\uc131\ud568\uc73c\ub85c\uc368, PyQt\uc5d0\uc11c \ubcf5\uc7a1\ud55c \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc27d\uac8c \ud45c\ud604\ud558\uace0 \uc870\uc791\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 <code>QAbstractTableModel<\/code>\uacfc <code>QAbstractListModel<\/code>\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \ub9cc\ub4dc\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>QAbstractTableModel \uac1c\uc694<\/h2>\n<p><code>QAbstractTableModel<\/code>\uc740 2\ucc28\uc6d0 \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc704\ud55c \ubaa8\ub378 \ud074\ub798\uc2a4\ub85c, \ud45c \ud615\ud0dc\uc758 \ub370\uc774\ud130\ub97c \uad00\ub9ac\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc774\ub294 Qt\uc758 MVC (Model-View-Controller) \uc544\ud0a4\ud14d\ucc98\uc5d0 \ub530\ub77c \ub370\uc774\ud130\uc640 \ud45c\uc2dc\ub97c \ubd84\ub9ac\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. <code>QAbstractTableModel<\/code>\uc744 \uc0c1\uc18d\ud558\uc5ec \uc0c8\ub85c\uc6b4 \ubaa8\ub378\uc744 \uc0dd\uc131\ud558\uba74, \ub370\uc774\ud130\ub97c \uc27d\uace0 \ud6a8\uc728\uc801\uc73c\ub85c \ud45c\uc2dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>QAbstractTableModel\uc758 \uc8fc\uc694 \uba54\uc18c\ub4dc<\/h3>\n<ul>\n<li><code>rowCount(self, parent=QModelIndex())<\/code>: \ubaa8\ub378\uc758 \ud589 \uc218\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li><code>columnCount(self, parent=QModelIndex())<\/code>: \ubaa8\ub378\uc758 \uc5f4 \uc218\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li><code>data(self, index: QModelIndex, role=int)<\/code>: \ud2b9\uc815 \uc778\ub371\uc2a4\uc5d0 \ud574\ub2f9\ud558\ub294 \ub370\uc774\ud130\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li><code>setData(self, index: QModelIndex, value, role=int)<\/code>: \ud2b9\uc815 \uc778\ub371\uc2a4\uc758 \ub370\uc774\ud130\ub97c \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n<li><code>headerData(self, section, orientation, role=int)<\/code>: \ud5e4\ub354 \ub370\uc774\ud130\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li><code>flags(self, index: QModelIndex)<\/code>: \ud2b9\uc815 \uc778\ub371\uc2a4\uc758 \ud50c\ub798\uadf8\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>QAbstractListModel \uac1c\uc694<\/h2>\n<p><code>QAbstractListModel<\/code>\uc740 1\ucc28\uc6d0 \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc704\ud55c \ubaa8\ub378 \ud074\ub798\uc2a4\uc785\ub2c8\ub2e4. \ub9ac\uc2a4\ud2b8 \ud615\ud0dc\uc758 \ub370\uc774\ud130\ub97c \uad00\ub9ac\ud558\ub294 \ub370 \uc774\uc0c1\uc801\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c \ub9ac\uc2a4\ud2b8 \ub370\uc774\ud130\ub97c \ud45c\uc2dc\ud574\uc57c \ud560 \uacbd\uc6b0, \uc774 \ud074\ub798\uc2a4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>QAbstractListModel\uc758 \uc8fc\uc694 \uba54\uc18c\ub4dc<\/h3>\n<ul>\n<li><code>rowCount(self, parent=QModelIndex())<\/code>: \ubaa8\ub378\uc758 \uc544\uc774\ud15c \uc218\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li><code>data(self, index: QModelIndex, role=int)<\/code>: \ud2b9\uc815 \uc778\ub371\uc2a4\uc5d0 \ud574\ub2f9\ud558\ub294 \ub370\uc774\ud130\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li><code>setData(self, index: QModelIndex, value, role=int)<\/code>: \ud2b9\uc815 \uc778\ub371\uc2a4\uc758 \ub370\uc774\ud130\ub97c \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n<li><code>flags(self, index: QModelIndex)<\/code>: \ud2b9\uc815 \uc778\ub371\uc2a4\uc758 \ud50c\ub798\uadf8\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>\ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30<\/h2>\n<p>\uc774\uc81c <code>QAbstractTableModel<\/code>\uc640 <code>QAbstractListModel<\/code>\uc744 \uc774\uc6a9\ud574 \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \ub9cc\ub4dc\ub294 \uc608\uc81c\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uba3c\uc800 <code>QAbstractTableModel<\/code>\uc744 \uc0c1\uc18d\ud55c \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \ub9cc\ub4e4\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc9c0\uc18d \uac00\ub2a5\ud55c \ub370\uc774\ud130 \ubaa8\ub378 \uc0dd\uc131: MyTableModel<\/h3>\n<pre><code>import sys\nfrom PyQt5.QtCore import QAbstractTableModel, QModelIndex, Qt\nfrom PyQt5.QtWidgets import QApplication, QTableView, QVBoxLayout, QWidget, QPushButton\n\n\nclass MyTableModel(QAbstractTableModel):\n    def __init__(self, data):\n        super().__init__()\n        self._data = data  # \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\ub294 \ub9ac\uc2a4\ud2b8\n\n    def rowCount(self, parent=QModelIndex()):\n        return len(self._data)  # \ud589 \uc218 \ubc18\ud658\n\n    def columnCount(self, parent=QModelIndex()):\n        return len(self._data[0]) if self._data else 0  # \uc5f4 \uc218 \ubc18\ud658\n\n    def data(self, index: QModelIndex, role=int):\n        if role == Qt.DisplayRole:\n            return self._data[index.row()][index.column()]  # \ub370\uc774\ud130 \ubc18\ud658\n        return None\n\n    def setData(self, index: QModelIndex, value, role=int):\n        if role == Qt.EditRole:\n            self._data[index.row()][index.column()] = value  # \ub370\uc774\ud130 \uc124\uc815\n            self.dataChanged.emit(index, index)  # \ub370\uc774\ud130 \ubcc0\uacbd \uc54c\ub9bc\n            return True\n        return False\n\n    def headerData(self, section, orientation, role=int):\n        if role == Qt.DisplayRole:\n            if orientation == Qt.Horizontal:\n                return f'Column {section + 1}'  # \ud5e4\ub354 \ub370\uc774\ud130 \ubc18\ud658\n            else:\n                return f'Row {section + 1}'\n        return None\n\n\nclass MyTableView(QWidget):\n    def __init__(self):\n        super().__init__()\n\n        self.setWindowTitle(\"My Table Model\")\n        self.resize(500, 300)\n\n        layout = QVBoxLayout(self)\n        self.model = MyTableModel([['Data 1', 'Data 2'], ['Data 3', 'Data 4']])\n        self.table_view = QTableView(self)\n        self.table_view.setModel(self.model)\n\n        layout.addWidget(self.table_view)\n\n        # \uc218\uc815 \ubc84\ud2bc\n        self.button = QPushButton(\"Edit Cell\", self)\n        self.button.clicked.connect(self.edit_cell)\n        layout.addWidget(self.button)\n\n    def edit_cell(self):\n        # (0, 0) \uc704\uce58\uc758 \ub370\uc774\ud130\ub97c \ubcc0\uacbd\n        self.model.setData(self.model.index(0, 0), \"New Data\", Qt.EditRole)\n\n\nif __name__ == '__main__':\n    app = QApplication(sys.argv)\n    window = MyTableView()\n    window.show()\n    sys.exit(app.exec_())<\/code><\/pre>\n<p>\uc704\uc758 \uc608\uc81c\ub294 <code>QAbstractTableModel<\/code>\uc744 \uc0c1\uc18d\ubc1b\uc740 <code>MyTableModel<\/code> \ud074\ub798\uc2a4\ub97c \uc815\uc758\ud558\uace0, \ucd08\uae30 \ub370\uc774\ud130 \ub9ac\uc2a4\ud2b8\ub97c \uc804\ub2ec\ubc1b\uc544 \ubaa8\ub378\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c \uc774 \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4. <code>setData<\/code> \uba54\uc18c\ub4dc\ub97c \ud1b5\ud574 \uc140 \ub370\uc774\ud130\ub97c \uc218\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\ub9ac\uc2a4\ud2b8\ud615 \ub370\uc774\ud130 \ubaa8\ub378 \uc0dd\uc131: MyListModel<\/h3>\n<p>\uc774\ubc88\uc5d0\ub294 <code>QAbstractListModel<\/code>\uc744 \uc0c1\uc18d\ubc1b\ub294 \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \ub9cc\ub4e4\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>from PyQt5.QtCore import QAbstractListModel, Qt\nfrom PyQt5.QtWidgets import QApplication, QListView, QVBoxLayout, QWidget, QPushButton\n\n\nclass MyListModel(QAbstractListModel):\n    def __init__(self, items):\n        super().__init__()\n        self._items = items  # \ub9ac\uc2a4\ud2b8 \ud56d\ubaa9 \uc800\uc7a5\n\n    def rowCount(self, parent=QModelIndex()):\n        return len(self._items)  # \uc544\uc774\ud15c \uc218 \ubc18\ud658\n\n    def data(self, index: QModelIndex, role=int):\n        if role == Qt.DisplayRole:\n            return self._items[index.row()]  # \ub370\uc774\ud130 \ubc18\ud658\n        return None\n\n    def setData(self, index: QModelIndex, value, role=int):\n        if role == Qt.EditRole:\n            self._items[index.row()] = value  # \ub370\uc774\ud130 \uc124\uc815\n            self.dataChanged.emit(index, index)  # \ub370\uc774\ud130 \ubcc0\uacbd \uc54c\ub9bc\n            return True\n        return False\n\n    def flags(self, index: QModelIndex):\n        return Qt.ItemIsEditable  # \ud3b8\uc9d1 \uac00\ub2a5 \ud50c\ub798\uadf8 \uc124\uc815\n\n\nclass MyListView(QWidget):\n    def __init__(self):\n        super().__init__()\n\n        self.setWindowTitle(\"My List Model\")\n        self.resize(300, 400)\n\n        layout = QVBoxLayout(self)\n        self.model = MyListModel(['Item 1', 'Item 2', 'Item 3'])\n        self.list_view = QListView(self)\n        self.list_view.setModel(self.model)\n\n        layout.addWidget(self.list_view)\n\n        # \uc218\uc815 \ubc84\ud2bc\n        self.button = QPushButton(\"Edit First Item\", self)\n        self.button.clicked.connect(self.edit_item)\n        layout.addWidget(self.button)\n\n    def edit_item(self):\n        # \uccab \ubc88\uc9f8 \uc544\uc774\ud15c \ubcc0\uacbd\n        self.model.setData(self.model.index(0), \"New Item 1\", Qt.EditRole)\n\n\nif __name__ == '__main__':\n    app = QApplication(sys.argv)\n    window = MyListView()\n    window.show()\n    sys.exit(app.exec_())<\/code><\/pre>\n<p>\uc774 \uc608\uc81c\ub294 <code>QAbstractListModel<\/code>\uc744 \uc0c1\uc18d\ubc1b\uc740 <code>MyListModel<\/code> \ud074\ub798\uc2a4\ub97c \uc815\uc758\ud569\ub2c8\ub2e4. \ub9ac\uc2a4\ud2b8 \ud56d\ubaa9\uc744 \ucc98\ub9ac\ud558\uace0, \uc0ac\uc6a9\uc790\uac00 \ub9ac\uc2a4\ud2b8 \uc544\uc774\ud15c\uc744 \uc218\uc815\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>\ub370\uc774\ud130 \ubaa8\ub378\uacfc \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4 \uc5f0\ub3d9<\/h2>\n<p>\ubaa8\ub378\uacfc \ubdf0\ub97c \uc5f0\ub3d9\ud558\ub294 \uac83\uc740 PyQt\uc5d0\uc11c \ub9e4\uc6b0 \uc911\uc694\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uc5d0\uac8c \ub370\uc774\ud130\ub97c \ud45c\uc2dc\ud560 \ubfd0\ub9cc \uc544\ub2c8\ub77c, \ub370\uc774\ud130\ub97c \ud3b8\uc9d1\ud558\uace0 \uc5c5\ub370\uc774\ud2b8\ud558\ub294 \uc77c\ub828\uc758 \uc791\uc5c5\uc744 \ubaa8\ub378\uacfc \ubdf0 \uac04\uc758 \uc6d0\ud65c\ud55c \ud1b5\uc2e0\uc744 \ud1b5\ud574 \uc218\ud589\ud569\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \ub370\uc774\ud130\ub97c \ubcc0\uacbd\ud560 \ub54c\ub9c8\ub2e4 <code>dataChanged<\/code> \uc2e0\ud638\ub97c \ubc1c\uc1a1\ud558\uc5ec \ubdf0\uc5d0 \ubcc0\uacbd \uc0ac\ud56d\uc744 \uc54c\ub824\uc8fc\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uc774\ub294 \ubaa8\ub378\uc774 \ub370\uc774\ud130\uc758 \ubcc0\ud654\ub97c \uac10\uc9c0\ud558\uace0 \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uac00 \ucd5c\uc2e0 \uc0c1\ud0dc\ub97c \uc720\uc9c0\ud558\ub3c4\ub85d \ub3d5\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 <code>QAbstractTableModel<\/code>\uacfc <code>QAbstractListModel<\/code>\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \ub9cc\ub4dc\ub294 \ubc29\ubc95\uc744 \ubc30\uc6e0\uc2b5\ub2c8\ub2e4. \ub370\uc774\ud130 \ubaa8\ub378\uacfc \ubdf0\uac04\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \uc774\ud574\ud558\uace0 \uc774\ub97c \ud1b5\ud574 \ubcf5\uc7a1\ud55c \ub370\uc774\ud130\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc775\ud788\ub294 \uac83\uc740 PyQt \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0\uc11c \ub9e4\uc6b0 \uc911\uc694\ud55c \ubd80\ubd84\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c \ubc30\uc6b4 \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \uc5ec\ub7ec\ubd84\uc740 \ub354 \ubcf5\uc7a1\ud558\uace0 \ub2e4\uc591\ud55c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud558\ub294 \ubaa8\ub378\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc774\uc81c \uc5ec\ub7ec\ubd84\uc774 \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \ub9cc\ub4e4 \ub2a5\ub825\uc744 \uac16\ucd94\uc5c8\uc73c\ub2c8, \ub2e4\uc591\ud55c \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \uc774 \uc9c0\uc2dd\uc744 \ud65c\uc6a9\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PyQt\ub294 Python \uc5b8\uc5b4\ub85c Qt \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\ub294 \uac15\ub825\ud55c GUI \ud234\ud0b7\uc785\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uad00\ub9ac\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ud074\ub798\uc2a4\uac00 QAbstractTableModel\uacfc QAbstractListModel\uc785\ub2c8\ub2e4. \uc774\ub4e4 \ud074\ub798\uc2a4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uc0dd\uc131\ud568\uc73c\ub85c\uc368, PyQt\uc5d0\uc11c \ubcf5\uc7a1\ud55c \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc27d\uac8c \ud45c\ud604\ud558\uace0 \uc870\uc791\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 QAbstractTableModel\uacfc QAbstractListModel\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \ub9cc\ub4dc\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. QAbstractTableModel \uac1c\uc694 QAbstractTableModel\uc740 2\ucc28\uc6d0 \ub370\uc774\ud130 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/39250\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[193],"tags":[],"class_list":["post-39250","post","type-post","status-publish","format-standard","hentry","category-pyqt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/39250\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"PyQt\ub294 Python \uc5b8\uc5b4\ub85c Qt \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\ub294 \uac15\ub825\ud55c GUI \ud234\ud0b7\uc785\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uad00\ub9ac\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ud074\ub798\uc2a4\uac00 QAbstractTableModel\uacfc QAbstractListModel\uc785\ub2c8\ub2e4. \uc774\ub4e4 \ud074\ub798\uc2a4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uc0dd\uc131\ud568\uc73c\ub85c\uc368, PyQt\uc5d0\uc11c \ubcf5\uc7a1\ud55c \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc27d\uac8c \ud45c\ud604\ud558\uace0 \uc870\uc791\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 QAbstractTableModel\uacfc QAbstractListModel\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \ub9cc\ub4dc\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. QAbstractTableModel \uac1c\uc694 QAbstractTableModel\uc740 2\ucc28\uc6d0 \ub370\uc774\ud130 &hellip; \ub354 \ubcf4\uae30 &quot;PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/39250\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-02T03:38:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:42:01+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/39250\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39250\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30\",\"datePublished\":\"2024-11-02T03:38:50+00:00\",\"dateModified\":\"2024-11-26T06:42:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39250\/\"},\"wordCount\":21,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"PyQt\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/39250\/\",\"url\":\"https:\/\/atmokpo.com\/w\/39250\/\",\"name\":\"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-02T03:38:50+00:00\",\"dateModified\":\"2024-11-26T06:42:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39250\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/39250\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/39250\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/39250\/","og_locale":"ko_KR","og_type":"article","og_title":"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"PyQt\ub294 Python \uc5b8\uc5b4\ub85c Qt \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\ub294 \uac15\ub825\ud55c GUI \ud234\ud0b7\uc785\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uad00\ub9ac\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ud074\ub798\uc2a4\uac00 QAbstractTableModel\uacfc QAbstractListModel\uc785\ub2c8\ub2e4. \uc774\ub4e4 \ud074\ub798\uc2a4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uc0dd\uc131\ud568\uc73c\ub85c\uc368, PyQt\uc5d0\uc11c \ubcf5\uc7a1\ud55c \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc27d\uac8c \ud45c\ud604\ud558\uace0 \uc870\uc791\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 QAbstractTableModel\uacfc QAbstractListModel\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ubaa8\ub378\uc744 \ub9cc\ub4dc\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. QAbstractTableModel \uac1c\uc694 QAbstractTableModel\uc740 2\ucc28\uc6d0 \ub370\uc774\ud130 &hellip; \ub354 \ubcf4\uae30 \"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/39250\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-02T03:38:50+00:00","article_modified_time":"2024-11-26T06:42:01+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/39250\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/39250\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30","datePublished":"2024-11-02T03:38:50+00:00","dateModified":"2024-11-26T06:42:01+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/39250\/"},"wordCount":21,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["PyQt"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/39250\/","url":"https:\/\/atmokpo.com\/w\/39250\/","name":"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-02T03:38:50+00:00","dateModified":"2024-11-26T06:42:01+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/39250\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/39250\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/39250\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"PyQt\uac1c\ubc1c\uac15\uc88c, QAbstractTableModel\uacfc QAbstractListModel\ub85c \ucee4\uc2a4\ud140 \ubaa8\ub378 \ub9cc\ub4e4\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/39250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=39250"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/39250\/revisions"}],"predecessor-version":[{"id":39251,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/39250\/revisions\/39251"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=39250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=39250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=39250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}