Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Resizing the Tablewidget column is crashing the application

Resizing the Tablewidget column is crashing the application

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bemineni
    wrote on last edited by
    #1

    I have a table widget column and cell at a particular row has a widget made up of two more widgets (Label and a progressbar).

    table cell
    +-----------------+
    | widget |
    ++---------------++
    +| Label |+
    +|progress bar |+
    ++---------------++
    +-----------------+
    when ever the I try to reduce the column width by dragging the table header and it goes to almost 100 pixels or so the application crashes.
    The crash happens at the paint method of the progress bar. Increasing the column width is not crashing

    Is there a way where, I can set a minimum column width so that it cannot reduce less than that ?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      Can you provide us a small sample program that demonstrates the crash? Just a main.cpp and the code that populates the table view with some data. That would be really helpful.

      You can put up the code here, if its not too long (put in @-Tags here, so it is pretty formatted) or put it all together in a ZIP, we can download. We'll have a look into this then.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved