Create UI designer in application
I want to create a ui designer in application, so that the user can drag and drop custom widgets on the screen, save them and later use them in application.
For the second part, QUiLoader will do the job.
But how can I create a designer with simple operations (drag and drop, move resize, ...) ?
Is there something in Qt/Qt Designer out of the box?
@MajidKamali You can take a look at QtDesigner source code. Or maybe you can use the QtDesigner DLL/so.
@jsulm I downloaded qtcreator source and found designer in plugins folder.
But I dont know where and how to start. Is there a manual (even unofficial doc) guide?
@jsulm meant the sources of Designer which is in the qttools module. You should rather take a look at that.
Thanks @SGaist :)
I found Qt designer code, I will play with that in a few days.
I found Widget-moveable-and-resizeable from qt wiki. for now this does the job, but there is a problem:
there is a code like below in this class
This causes the inner widget never gets mouse events. But I want this line, just in edit mode of editor. When user is not in edit mode, widget must receive mouse events as usual.
How can I do this?
Thanks again for your help :-)