I am Creating App. that contains Picture Editing. i have take two QLabel And set image on each of Qlabel. now i want to Drag one image and put it on other Image..
how can i do that?
Any help?
Thanks..
The Graphic View Framework with QGraphicsPixmapItem could solve your problem.
Related
It seems a very simple requirement.
How do I put an image on a button? The delete button has a style variant of Icon, but I can't see where the image is coming from.
Can anyone point me in the right direction?
Where can I find all App Maker button icons? ...partially solved my problem, in that I can see the text value is used to find the icon resource, but I would like to know how to put my own image on a button.
If you really want to use an image file of your own, you can insert it as an Image widget, and then use the onClick event for the image to set the button's action.
With that said, I am a huge fan of the Material icon set that's linked from the Where can I find all App Maker button icons? question. I can pretty much always find an icon that works for what I need; then it's just a matter of setting the button style to Icon and using the name of the icon as the button text.
I have different controls in my XAML page which consists of charts in Xamarin.Forms. The functionality that I want to achieve is to make a long press on each chart, then drag and drop the chart to another place.
I am taking this as an example : https://canbilgin.wordpress.com/2018/03/17/re-order-listview-items-with-drag-drop-ii/
But I dont have a listview in my XAML page.
How can I achieve this in XF ?
You can set a Draggable View, and put inside your Images / Graphs or whatever.
A good tutorial can be followed here
I want to create a button with cancel option(image).
Please have a look image.
Cancel or button both have different click option.
enter image description hereHow I can achieve this.
You can use simple StackLayout with horizontal orientation and use Tap Gesture for image and label to achieve your target.
Hope this may solve your issue.
The Button has an image property you can define in xaml. Just add the name of your image and make sure it exists in the resources / drawable folders
I'm working on a PyQt project. I have a map with points on it (The map is a QGraphicsScene and my points are QGraphicsEllipseItem).
I would like to display some informations on the points when they receive a hover event.
The information will be: a picture, some text and a treeview fill with data.
I don't want to open a new window, I want it to float over the map exactly how a tooltip will do.
I don't know how to do it, I can't find any widget who fill my needs.
Thank you for any help !
Create a new widget/window with windowflag Qt::ToolTip. According to the docs Qt's tooltips are nothing else. http://doc.qt.io/qt-5/qt.html#WindowType-enum
I need to create a view like this in Qt
If I click the circle then it'll give a popup message like this "You clicked 2 circle."
I need to add the circle during run time in any location. How to implement this in Qt using QGraphicsView? Or are there any other better way to implement this?
The following page from Qt documentation can help you: http://doc.qt.io/qt-5/graphicsview.html
The Drag and drop example will help you to know how deals with your QGraphicItems
Hope that helps