Results 1 to 8 of 8

Thread: QTableWidget cellwidget selection

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    248
    Thanks
    29
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTableWidget cellwidget selection

    is there a better/more official way to use QWidgets in a "table-like" way?

    Anyways, you solution works just fine. Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget cellwidget selection

    The question is what exactly you are trying to achieve.
    You said very little about the motivation or requirements of what you are doing, so its hard to say.
    It sounds almost as what you really need is not a table but a layout.
    But I can't really tell based on what you have supplied so far.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Align a QPushButton in the cellwidget of QTableWidget
    By rawfool in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2012, 08:55
  2. How to set focus to QTableWidget's cellWidget
    By danczer in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2011, 16:12
  3. QtableWidget moving cellWidget
    By hubipet in forum Qt Programming
    Replies: 0
    Last Post: 22nd October 2010, 07:06
  4. QTableWidget & cellWidget : some pointers
    By prashant in forum Qt Programming
    Replies: 1
    Last Post: 18th October 2009, 10:48
  5. Selection in QTableWidget
    By Nippler in forum Qt Programming
    Replies: 3
    Last Post: 30th April 2008, 08:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.