How to define number of images in Qt image's carousel? - qt

Well, i saw a Qt Quick Image's Carousel Example in http://developer.qt.nokia.com/wiki/Qt_Quick_Carousel. I adapted for my specific situation and it worked!
Ok, but i'm with problems still. I want to show just 4 images each time, but i didn't see something about this. I'm reading also a QML documentation in http://doc.qt.nokia.com/4.7-snapshot/qml-tutorial.html...
Do someone know how can i to show just 4 images each time in the that example code?

pathItemCount property from PathView will help you.

Related

QML Canvas: How to use CanvasWindow and CanvasSize properly

I have a qml canvas with many elements, and when I zoom in, the elements needs to redrawn, if the canvas size grows too much, the rendering is delayed and quite visible.
I couldnt use the canvassize, canvaswindow properly to render only part of the scene, didnt find any proper examples to use this.
Could some expert please guide me with very minimalistic code.
Also, I see that these properties are marked as not to be used in future, does anyone know what is it that replaces ?
Regards,
Indrajit

How to resize icon to 48x48 from 1001 × 1506 in gimp?

apologize for this really basic question, but I can't find a correct way in resizing icons. I want to resize this image with 1001x1506 px (300 dpi) to 48x48 px (160 dpi) for my icon in android app. I'm using gimp as my editor and I'm not used to this photo editor(adobe is not an option).
I've tried to scale it from original-500-200-48 but the image is already pixelated and I really dont know how to prevent it from pixelating while reducing size.
I would really appreciate your inputs.
thank you.
UPDATE ANSWER:
After searching for awhile, I found this good tutorial. And I was able to resize my images from large size(ex. 1024x1002) down to different icon size(ex. 48x48,72x72). http://gimp-tutorials.net/How-to-make-an-icon-from-a-picture
And also this link also helped me the different sizes and dimensions for android icons. http://iconhandbook.co.uk/reference/chart/android/
Hope it will also help you guys.
In the menu, go to Image > Scale image... and try playing with the interpolation setting.
After searching for tutorials, if found this good tutorial. And I was able to resize my images from large size(ex. 1024x1002) down to different icon size(ex. 48x48,72x72). http://gimp-tutorials.net/How-to-make-an-icon-from-a-picture
And also this link also helped me the different sizes and dimensions for android icons.
http://iconhandbook.co.uk/reference/chart/android/
Hope it will also help you guys.

How to Stretch an image by dragging its sides in Adobe flex?

I want to develop a hair style app in adobe flex. In that ,the wigs should be placed in right position.
So i want to adjust the wigs in x and y directions.
Does anybody know how to stretch an image in x and y direction?
App Reference:
https://play.google.com/store/apps/details?id=air.MagicMirrorFree&feature=search_result
Thanks in advance
Take a look at the very good Transform Tool. I've used it myself and can highly recommend it.
you can put re-size handlers on pretty much anything, for example like this:
http://flexdevtips.blogspot.com/2009/03/resizable-containers.html
Hope that helps
If you want to develop it by yourself, you may have a look on the transformation matrix class. There is a very good tutorial about this:
http://www.senocular.com/flash/tutorials/transformmatrix/
Otherwise, you may use existing library:
as Richie_W mention, Transform Tool is a good one, the following is Transform Tool Developer Guide:
http://www.senocular.com/flash/tutorials/transformtool/
The following link is Transform Tool using in flex:
http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php
TransformManager is also another one:http://www.greensock.com/transformmanageras3/
but this is a commercial one.

Icons on workflow toolbox are blurred

I'm re-hosting the designer in my own application. But I surprisingly found the icons in the toolbox are blurred. Screenshot is upload here.
It seems the toolbox is stretched, but the text is displayed correctly, only the icons are blurred. The screenshot was taken from one WF sample (WF_WCF_Samples\WF\Basic\DesignerRehosting\Basic\cs). The only change I made was making the toolbox list long enough, and assigning the same icon (16x16) to all the tools. You can find the sample codes here.
Any idea what's going wrong? Is there any workaround available?
Thanks so much!
Donald
Set UseLayoutRounding="True" on the Main Window. That fixes it.

Thumbnails in a brick style instead of grid - how to do this?

Is there any jQuery or other plugin which let me display my thumbnails like that:
http://hellocute.tumblr.com/archive
I know, example is cool :). Anyway this is cool brick style which displays images not in columns, which would be easy to do, it displays them in rows, so next row is starting in the highest available position, not in the first column for example.. That's pretty cool. Also works for any window size which is double cool.
Anyone know how to do this ? I checked their code but it's difficult to find the answer there.
Was trying to google: css brick style, thumnails brick display, js brick photos
Nothing interested found.
THX
jQuery Masonry is probably what you are looking for.

Resources