Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create UI designer in application
Forum Updated to NodeBB v4.3 + New Features

Create UI designer in application

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MajidKamali
    wrote on last edited by
    #1

    Hi.
    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?

    Thanks

    jsulmJ 1 Reply Last reply
    0
    • M MajidKamali

      Hi.
      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?

      Thanks

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @MajidKamali You can take a look at QtDesigner source code. Or maybe you can use the QtDesigner DLL/so.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • M Offline
        M Offline
        MajidKamali
        wrote on last edited by
        #3

        @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?

        Thanks

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          @jsulm meant the sources of Designer which is in the qttools module. You should rather take a look at that.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • M Offline
            M Offline
            MajidKamali
            wrote on last edited by
            #5

            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
            cWidget->setAttribute(Qt::WA_TransparentForMouseEvents, true);
            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 :-)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @MajidKamali said in Create UI designer in application:

              cWidget->setAttribute(Qt::WA_TransparentForMouseEvents, true);

              Call cWidget->setAttribute(Qt::WA_TransparentForMouseEvents, false); ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved