---
title: "Discussion on \"QTableView Experience(Model/View programming)\" | Hashnode"
description: "Discussion on \"QTableView Experience(Model/View programming)\". 1.How to expand the column to fill the whole table?\nwe can set up one of the columns as stretch, and other columns are fixed, like this\nQTableView* tableView = new QTableView();\ntableView->setModel(model);\n\n// Put these statements after setting model..."
url: "https://hashnode.com/posts/qtableview-experiencemodelview-programming/63f9d6f5a08779f59bfd4bf3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [QTableView Experience(Model/View programming)](https://kangaroolove.hashnode.dev/qtableview-experiencemodelview-programming?utm_source=hashnode&utm_medium=feed)

1.How to expand the column to fill the whole table? we can set up one of the columns as stretch, and other columns are fixed, like this QTableView\* tableView = new QTableView(); tableView->setModel(model); // Put these statements after setting model...

Feb 25, 2023 · 1 min read · kangaroolove.hashnode.dev  
Updated Mar 17, 2023  
Read the article

-   [#qt](https://hashnode.com/tag/qt)
-   [#qtableview](https://hashnode.com/tag/qtableview)
-   [#modelview-programming](https://hashnode.com/tag/modelview-programming)
-   [#update-data](https://hashnode.com/tag/update-data)
-   [#refresh-data](https://hashnode.com/tag/refresh-data)

## Written by

[Kangaroo](https://hashnode.com/@KangarooLove)

@KangarooLove · Singapore

  
[View profile](https://hashnode.com/@KangarooLove)

Solo leveling

## Responses 1

Markdown supported · ⌘↵ to post

[Shuai Shiyu](https://hashnode.com/@shiyu)

[Mar 3, 2023](https://hashnode.com/posts/qtableview-experiencemodelview-programming/63f9d6f5a08779f59bfd4bf3/comment/6401455252d0c16bb2221db0)

Excellent!

[Kangaroo](https://hashnode.com/@KangarooLove)

[Mar 4, 2023](https://hashnode.com/posts/qtableview-experiencemodelview-programming/63f9d6f5a08779f59bfd4bf3/comment/6401455252d0c16bb2221db0#reply-64032acd6cc7b7a22094bf8d)

Thanks!
