How to take a screenshot of a particular QWidget in a tab in QT and post it in another tab? - c++

I have a tab that is to display data that is to be prepared for a report. Kind of like a preview. What I want is to take a screenshot of graph generated in another tab.
Kind of similar to scanning an image. So the initial tab generates 3 graphs under each other that fit in the screen. I basically want the screen shots of the graphs to post them along with the data in the second tab.
The second image is where I want the content of the first image to be posted. How do I go on about that?

Related

How to move list item given source index and destination index with animation in flutter

I am building a leaderboard screen in the flutter application, whenever the user comes to the leaderboard screen, I want to show the animation of his old position to a new position in the leaderboard, so I need an animation of this row to go up or down based on his standings, please someone help me which widget to use to get this functionality working. Thanks
AnimatedList is the widget you are looking for. It automatically generates entrance and exit animation when items are added/deleted. Combined that with SizeTransition, and you will get a nice "growing/shrinking" effect.
There are some really good examples (and even a video tutorial) on the official docs as well.
You can also look at this answer for a more complex example of using 2 of them.

How to let the user know that a graph do contain drill down in power bi?

Is it possible to show a subtitle in a power bi graph? I want to show the user that, this specific graph does contain drill-down(like the below-attached image).
If I add a hardcoded text box it is overlapping with the graph. Is there any way to show that the particular graph contains drill-down(like if I hove on the graph title, It should this contains drill-down)
Please suggest some ideas.
Usually, if drill-down is available, it shows some navigation buttons on the top right of the graph, which is basically is an indicator that drill-down is available:
Navigation buttons
Another option, which I personally do not like, but that might work for you. You can create a measure which just displays some help text like "Drilldown is available" and you can place it to the "Tooltips" section of the graph. When user hovers the mouse over the graph data, he will see the tooltip with this text. Something like this:
Tooltips

QT - Select section of image

I'm using QLabel and QPixmap to show image in my program. I would like to use something like snipping tool in Windows to let user to select part of image that will be processed further.
For example, I load image, user select part of it (rectangle), and it shows it is selected and I can read coordinates that are selected, so I can proceed with processing only part of image.
I don't think this is possible with Qt without a fair amount of coding.
Maybe a third-party Qt widget, such as https://github.com/dimkanovikov/ImageCropper, is what you're looking for?

Show data with Rapheal on click

I am hoping to use Raphael to draw a map and colour code according to a result for an area. That bit I can do. What I would like to do is if the user clicks an area that somewhere additional data appears. Is this possible. Within each element in the Raphael JS file, can I include a data source?

codename one - no way to set background image in list

I am new to codename one and I have tried for one and half day to fix my issue of,
a list with background image in each row.
Let me explain, I am having a list with some items(entries), I created renderer and name it appropriately. I set background correctly which is reflecting in designer (see image)
but when I run it on simulator/device , all formatting and designs are just invisible..!! (see red arrow pointing to simulator in image)
anyone have any idea ? why this is happening ?
Thanks,
Akash
It seems you didn't set the background correctly in the designer. Since the list items in the model within the designer are strings the renderer entries don't get overriden and so you see a separate UI.
To reproduce the issue in the designer click the items entry in the list property, remove everything and add a sample key/value hashtable pair. You would see all your design entries disappearing.
This might help you understand how to customize images and backgrounds here: http://www.codenameone.com/3/post/2013/12/deeper-in-the-renderer.html