Results 1 to 18 of 18

Thread: QTableWidget Problem, setRowWidget? :P

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: QTableWidget Problem, setRowWidget? :P

    Quote Originally Posted by VireX View Post
    There are already 55 rows available, and I'm adding them onto the table, but for some reason, the program usually crashes.
    Maybe there isn't enough columns?

  2. #2
    Join Date
    Jan 2007
    Posts
    209
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: QTableWidget Problem, setRowWidget? :P

    You know what nvm, you guys don't see anything wrong with it.

    Also, the fact that me commenting out CreateList(), still causes a crash (but this time moves to end of the program), but when theres CreateList() (with almost no code except a log function, which proves its something related to my program and not Qt Table).

    Ok one last question
    Let's say I have 2 pushbuttons:
    label: Add
    Labal: Del

    If I were to setCellWidget the pushbutton to one column, but if I were to click the header "to sort", would it sort all the Add buttons at top and Del buttons at bottom (or vice-versa)? or would it not know how to sort PushButtons?

  3. #3
    Join Date
    Jan 2007
    Posts
    209
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: QTableWidget Problem, setRowWidget? :P

    Is there any sample sorting code, to sort some widgets or something?
    Last edited by VireX; 6th April 2007 at 19:20.

Similar Threads

  1. QTableWidget issues
    By Djony in forum Qt Programming
    Replies: 42
    Last Post: 20th December 2006, 00:27
  2. QTableWidget editing question
    By Trasmeister in forum Qt Programming
    Replies: 1
    Last Post: 20th September 2006, 19:46
  3. Problem inserting in QTableWidget
    By DPinLV in forum Qt Programming
    Replies: 2
    Last Post: 2nd August 2006, 01:10
  4. Replies: 16
    Last Post: 7th March 2006, 16:57
  5. Replies: 6
    Last Post: 5th March 2006, 22:05

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.