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. How do I create a scribble area with Qt Designer
Forum Updated to NodeBB v4.3 + New Features

How do I create a scribble area with Qt Designer

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 540 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.
  • P Offline
    P Offline
    proneon267
    wrote on last edited by
    #1

    I am using Qt Designer to create a ui file. I want to add a scribble area but I don't see any scribble widget in the sidebar that I can just drag to add a scribble area. How should I do this?

    Pl45m4P 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      What is a scribble area ?
      There is the example
      https://doc.qt.io/qt-5/qtwidgets-widgets-scribble-example.html

      Do you mean how to reuse this or ?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        proneon267
        wrote on last edited by
        #3

        I mean how do I do it with Qt Designer?

        mrjjM 1 Reply Last reply
        0
        • P proneon267

          I mean how do I do it with Qt Designer?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @proneon267

          Well the sample is not a plugin so its not available as a widget in Designer.

          You will have to add the .cpp and .h files to your project and
          then create an instance in code.

          Or use the promotion feature
          https://doc.qt.io/qt-5/designer-using-custom-widgets.html

          This is a kind of place holder thing. where you then can use a plain QWidget to design with
          and then at run time, it will be your custom widget.

          If this is still not what you want/ask, please take an extra moment to give better details of what you mean
          by scribble area and "I mean how do I do it with Qt Designer?" :)

          1 Reply Last reply
          2
          • P proneon267

            I am using Qt Designer to create a ui file. I want to add a scribble area but I don't see any scribble widget in the sidebar that I can just drag to add a scribble area. How should I do this?

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by Pl45m4
            #5

            @proneon267

            A scribble area is either based on QGraphicsView or you use a QPainter to paint on your widget directly.
            In both ways, you have to configure your wanted behavior inside your code. There is not ready-to-work plugin or widget, that does that.


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            1 Reply Last reply
            3
            • P Offline
              P Offline
              proneon267
              wrote on last edited by
              #6

              Thank you. I will keep that in mind.

              1 Reply Last reply
              0

              • Login

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