I want to get a row and column shape as in the image, and at the same time I want to get a suitable image according to mobile and other devices, this is the shape I want, how can I get this grid system?
This is the image I want to get
Related
I'm trying to do something but I don't know if it's actually possible.
This is what i would like to do:
I want to create the same mosaic image with defined columns and rows for all screens (CSS Grid template).
I explain:
I have a mosaic image with 5 columns and 5 rows (so 20 images).
Whatever the screen, I would always like to keep this same number of columns and rows. What would change is the size of the image, the smaller the screen, the smaller the squares of the mosaic and therefore the images are very small and vice versa...
Is it possible to do this or do I have to create a specific template for each screen?
Thank you for yours answers.
I see the Compare Two Images from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_image_compare. And, I have made it to displayed it on multiple rows and columns but the images are overlapping when showing on a smaller screen. How do I make it a responsive grid?
I want to make something like a gridlayout but the layout must decide how many elements can be fitted in a row, and when the row is full continue with the next row.
QtGridLayout also fixes the columns width.
I want to something like this (this pictures was manually organised in Horizontals and verticals grids)
When the image size changes one of the buttons goes to first row.
((In this compositions both images looks with the same size, but actually second one is wider than first one).
Some one answer this question but remove it, so the credits are for my unknown friend.
Qt have an example named Flow Layout Example for a widget based form and another for Graphics View widget.
I am trying to create a grid layout of images kind of like how google images does it.
I want to add fixed sized images left to right, top to bottom but I am having trouble is figuring out when adding another image to a row would make it not fit and then decide that that images should be placed in a new row.
Also when the window resizes it should move images into/from rows based on how many it can fit in.
Ive got a scroll area with a grid layout in it which is fine if I know what can fit, but I can't figure out how to make it move items if say the window width is shrunk, and say an item needs to be moved down 1 row which moves other etc.
Assuming you are using QWidgets I'd suggest you to use QListView which does the layouting for free, if you want more control on how items are displayed use a QItemDelegate. For QListView the view mode should be set to QListView::IconMode so that you have a grid of items and not a list.
But if you are using QtQuick things are much easier, a GridView with Image delegates would do what you want really quickly and using GPU power to build you UI.
I need component that can display a list/collection of items in a Grid View (the DataGrid is not what I am looking),what I want to do is display a Grid with Images, and this component must do ItemRenderer recycling so if I have 100 or more images in my list I don't get a renderer(so more of100 total) for each image.
Is something like this already build ?I can't find it , I would prefer to not reinvent it.
For more clarity, I need something like this http://doc.qt.digia.com/qt-maemo/declarative-modelviews-gridview.html not a image gallery with a large image on top and some smaller preview images on bottom , I need something like you would use for showing thumbnails in a file manager.
Thanks.
How about Tile List and setting the max rows or max column as in your case to 1