Drag and drop - text between subwindows
-
I am starting to look into an idea to "drag and drop" highlighted text between QTextEdit objects.
Is it in general feasible in Qt? -
I am starting to look into an idea to "drag and drop" highlighted text between QTextEdit objects.
Is it in general feasible in Qt?@AnneRanch
Should be possible. Maybe you have to subclass and create your own d'n'd-
QTextEdit.
Have a look at these examples. -
@AnneRanch
Should be possible. Maybe you have to subclass and create your own d'n'd-
QTextEdit.
Have a look at these examples.@Pl45m4 Thanks - that is very encouraging and immensely helpful.
I think the main challenge will be - I am passing , using drag and drop, a text between instances of QTextEdit and only the source is active. So i simple terms - if I start the drag using mouse I will have to figure out how to activate the destination - since the mouse button has to stay down... perhaps I will need a keyboard too... space bar (?) .
My concern is how to add all these "drag and drop" classes without destroying the initial QTextEdit and MDIArea relations.
I have never done multiple inheritance, perhaps this will be a good application for that.
I already have examples cloned, so I will take a look at the example you posted.
Thanks -
I did check the example . It is put together as subproject and won't even compile. This is not a first time example does not work. Why QT is putting out such trash is unbelievable. Spare me the usual comments - you are using wrong Qt version ...
-
@Pl45m4 Thanks - that is very encouraging and immensely helpful.
I think the main challenge will be - I am passing , using drag and drop, a text between instances of QTextEdit and only the source is active. So i simple terms - if I start the drag using mouse I will have to figure out how to activate the destination - since the mouse button has to stay down... perhaps I will need a keyboard too... space bar (?) .
My concern is how to add all these "drag and drop" classes without destroying the initial QTextEdit and MDIArea relations.
I have never done multiple inheritance, perhaps this will be a good application for that.
I already have examples cloned, so I will take a look at the example you posted.
Thanks@AnneRanch said in Drag and drop - text between subwindows:
very encouraging and immensely helpful.
How did it turn from
very encouraging and immensely helpfultotrashso quickly? :)The example project has a
main.cppand a.profile. So you can use it as standalone project and test the behavior.