推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
simple2025
0D
V2EX  ›  Python

关于 pyqt 的 QTableWidiget 的问题

  •  
  •   simple2025 · Dec 8, 2018 · 2383 views
    This topic created in 2855 days ago, the information mentioned may be changed or developed.

    我想实现这样的 table
    |header 1 | header2 |
    |col1|col2| col3| col4|
    这样的 table,在 pyqt 怎么实现

    2 replies  •  2018-12-09 17:47:11 +08:00
    fsdr4e3errt4h
        1
    fsdr4e3errt4h  
       Dec 9, 2018   ❤️ 1
    研究一下
    void QTableView::setSpan(int row, int column, int rowSpanCount, int columnSpanCount)

    https://doc.qt.io/qt-5/qtableview.html#setSpan
    simple2025
        2
    simple2025  
    OP
       Dec 9, 2018
    @fsdr4e3errt4h 这个方法可以用来设置 header?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   751 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
    ♥ Do have faith in what you're doing.