I need to make the rows of my table expandable, but in the space below my starting row, once the expandable row has been added, this annoying space appears:
This is the space i'm talking about
Now i need to hide this space. How can i do it?
Related
I have a grid inside a component which has some rows and columns. The problem is that there is some empty space after the last row of the grid and I want to get rid of it. This is what it looks like in the inspector, it actually shows that the whole content is the grid, whereas only the rows with actual information are the content of the grid. I want to remove this white space which is there for no reason. For clarification this is the empty unwanted space:
You could use setHeightByRows to set the Grid to contain a fixed amount of rows, or setHeightUndefined to always show all the rows (bad idea if your Grid ever has massive amounts of data in it).
I have 2 tables, one on top of another to achieve frozen Column (left side), but in some row, I would like to have some Text stretch across entire row.
How can I make it to display as a line without any missing characters in between ?
Thanks in advance.
1) Allow word wrap in table cells.
2) Show full cell text as tooltip.
I have an editable ExtJS grid, whose 1st row has more height then other rows. The editor is defined for every column based on datatypes. As first row's height is more than the other rows and editor is common, neither I am not able to provide the extra padding on cell-editor in first row only.
As shown here.
I have a table with a varying number of rows and columns and I'd want to adjust the size of the table so that there is no extra white space.
What I've tried to do is:
myTable.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow)
This works well but if the window is fixed or there are too many rows to show. Then suddenly there will be scrollbars that appear and block the view of some of the table data. I would want the scrollbars to be to the side of the table and not on top it.
Have a look at below image, which is a QTableWidget :
You can see that it's a rows with alternating color. But you can also see that it's not vertically filled the table. Which gives a --in my perspective-- rather unpleasant appearance.
If the row content is unable to fill the table vertically, how can we make sure that the alternating rows get drawn vertically full?
That's IMHO not possible without subclassing QTableWidget since Qt only colors actual table rows. In your example the table is not entirely filled with rows, so there's no alternating coloring of the whole table.