Results 1 to 6 of 6

Thread: qtablewidget problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: qtablewidget problem

    You are putting a character in the cell that does not have a glyph in the current font. How is the data sourced? What exactly is going in the cell?

  2. #2
    Join Date
    May 2012
    Posts
    33
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    9

    Default Re: qtablewidget problem

    qstring... get data from socket... using setitem i insert in cell... when i run the same code using qtable(qt3) it works fine..when i use qtablewidget the cell content shows the box like character...and if i use qtabe(qt3) the cell shows null or empty which is correct...because it should show empty for that column..

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: qtablewidget problem

    I will ask again: What exactly is going in the cell? What bytes are you getting in the socket that you are mangling into a QString and then stuffing into a QVariant? This is the problem, not the table widget.

Similar Threads

  1. QTableWidget problem
    By sabonis in forum Qt Programming
    Replies: 0
    Last Post: 6th May 2010, 17:33
  2. Custom QTablewidget problem
    By Tavit in forum Qt Programming
    Replies: 0
    Last Post: 21st January 2010, 15:06
  3. Problem with QTableWidget and Signals
    By rmagro in forum Qt Programming
    Replies: 4
    Last Post: 17th September 2008, 14:28
  4. QTableWidget problem
    By MarkoSan in forum Qt Programming
    Replies: 53
    Last Post: 7th May 2008, 11:15
  5. Problem inserting in QTableWidget
    By DPinLV in forum Qt Programming
    Replies: 2
    Last Post: 2nd August 2006, 00:10

Tags for this Thread

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.