LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2020, 10:27 PM   #1
xahodo
Member
 
Registered: Oct 2009
Distribution: Gentoo Linux
Posts: 39

Rep: Reputation: 22
gui toolkit drag and drop of WIDGETS


For a program I'm looking to develop I need to be able to allow the user to add/remove/reorganize widgets.

I checked both fltk and qt and, while they do have drag and drop functionality available, that functionality seems to only be available to data contained in widgets and not the widgets themselves.

Now, I could just respond to the left mouse button down event and manually follow the mouse around with the widget, but would it be possible to move a widget from one container to another (no need to change from one window to another, just another box) or would mouse down automatically trigger the drag event on the data the widget holds?

I do like fltk's simplicity, but does that simplicity affect its usability?
 
Old 12-02-2020, 03:58 PM   #2
SoftSprocket
Member
 
Registered: Nov 2014
Posts: 399

Rep: Reputation: Disabled
About the only thing that comes to mind for draggable widgets is docking toolbars. Many toolkits provide some form of them.

As for toolkits themselves I'm currently enjoying gtkmm. fltk is very light but does leave a lot up to you that other toolkits don't. My current preference for gtkmm is that it allows me to use C++ constructs without qt's heavy use of macros. qt is certanly deep though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Drag And Drop Files And Folders In Terminal To Print Their Absolute Path LXer Syndicated Linux News 0 10-11-2020 12:30 PM
LXer: VirtualBox 5.0 Brings Full Drag and Drop Between Host and Guest LXer Syndicated Linux News 0 07-10-2015 08:42 AM
moved to Gnome 3 and can't drag and drop urls anymoe pwalden Linux - Desktop 3 01-05-2012 01:52 PM
LXer: Integrate JavaScript libraries to enhance Google Web Toolkit widgets LXer Syndicated Linux News 0 05-02-2007 12:02 AM
some widgets by tcl/tk toolkit are huge UmbraSomni Linux - Software 0 06-25-2004 10:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration