Screenshot of my webpage
how can I increase the size of row in CSS grid? the row takes the the size according to the content in it, despite assigning it a particular size.
Related
I need the sizes of layer like width - 7sm, height - 10sm. Also all elements scaled correctly by size of layer the same time. Is it possible?
Image
To change the size of a project. Go to the image tab and select image size. To scale multiple layers at once. Click one and hold shift, then click another.
I am using tableview to display a list of items
e.g.
list =
[
{name='bob',
description='really long description that can be multiple rows',
image='an image from my server',
},
...
]
the above is just an example. I got my data from my server, including images of variable sizes. My question is how do I display the correct row size(height) once I got image from the server. I understand that I can wait until all data and image has been downloaded from server. Then precompute the height. But I want to be able to display the text first (as texts are more likely to be firstly downloaded), then once there is an image in it, I download it again. After the image is downloaded, I want to resize the row height. How can I do that?
Create a multi-line display.newText() of the width you expect to put in the table view. When the object is created, grab it's height and then remove the object. Use that height + some padding for the row height. There may be performance issues with this, so as an alternate, keep the text object and pass it in as a parameter when you create the row.
I need to display a large (and increasing) log-file with QTextEdit (alternatively with QTextBrowser, must be one of those 2, though) and format the output in 3 columns with following properties:
1. column: text top-right aligned, fixed width, always 1 line (height depends on 2. column)
2. column: text left aligned, dynamic width (scales with window size), can be multiline with "wordbreak" (height depending on lines of text), can contain clickable URLs
3. column: text top-left aligned, fixed width, always 1 line (height depends on 2. column)
Is there somehow a way to use QTextEdit html markup (or something else, maybe) to achieve this and then simply append new log entries whenever necessary without recreating everything?
As a picture often says more than a thousand words I added an image of how I think it should look:
I have a XamGrid that I've got displaying several dynamically generated columns, and one of those columns can have a listbox in it that sizes itself according to how many items are in it (but has a maximum height constraint). I want each row of the XamGrid to basically only be as large as it needs to be - which they are at first, but after scrolling up and down the contents of the grid a bit I find that rows that had hardly any values in the listbox (so should be fairly small in height) are now the same height as the largest rows I've scrolled into view previously. The result is a lot of wasted space, so I'm wondering if anyone knows of a way to make it so that the rows don't automatically resize themselves to match the largest row that has been loaded. I've tried taking a look at the control template but all I see in it are 3 parts and can't see any way to edit or look inside those parts.
PS I would have posted this on Infragistics own support forums but I can't for the life of me actually find any way to post new topics on there even when signed in with my IG account... great design.
Thanks
Chris
Set the RowHeight property to Dynamic. That should take care of the issue for you.
<ig:XamGrid RowHeight="Dynamic" ... >
Anyone knows how to fit the column width to the data in a TableView and then stretch the final column to the size remaining on the widget?
I've tried:
_ui->tableView->resizeColumnsToContents();
_ui->tableView->horizontalHeader()->setStretchLastSection(true);
But only the resizeColumnToContent() work. The last section is unstretched.
Is it even possible without having to dynamically calculate the width manually?
Nethermind. For prosperity here's the solution:
_ui->tableView->resizeColumnsToContents();
_ui->tableView->horizontalHeader()->setSectionResizeMode( 3, QHeaderView::Stretch );
In this case the last column is 3.