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. Tilt Qwidget ?
Forum Updated to NodeBB v4.3 + New Features

Tilt Qwidget ?

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 1.9k Views 3 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
    Paul-Vicki
    wrote on last edited by Paul-Vicki
    #1

    i want the Qwidget to draw in this shape can any one help me out.. http://postimg.org/image/696j2modz/

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Use QGraphicsView or QPainter, unless you want the widget itself to be that shape: this is not supported.

      (Z(:^

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Paul-Vicki
        wrote on last edited by
        #3

        i am using Qpainter can u help me out how to paint that ....

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          See the drawRect function.

          (Z(:^

          P 1 Reply Last reply
          0
          • sierdzioS sierdzio

            See the drawRect function.

            P Offline
            P Offline
            Paul-Vicki
            wrote on last edited by Paul-Vicki
            #5

            actually Draw rect will draw my widget accorfing to it .. but i want my widget to change or u can say tilt.. in previous image that blue part is Widget not Drawing... how to chnage its gemetory.

            (Z(:^

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              To quote myself:

              [...] you want the widget itself to be that shape: this is not supported.

              This is something for Window Compositor to worry about, Qt has no power there.

              (Z(:^

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Paul-Vicki
                wrote on last edited by Paul-Vicki
                #7

                see this image for refernce i have a custom Qwidget As line i wana tilt it.. to certain postion or move my X2,y2 to certain postion but my paint remain Fixed http://postimg.org/image/86aii23ul/

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  Do I have to repeat myself for the third time? The window manager expects the window to be a rectangular, untilted. There is no getting around it in Qt.

                  From what you say, it seems to me you should consider using QGraphicsView or QPainter to paint your scene inside a "main" widget that will remain rectangular. But I don't know your exact requirement.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #9

                    Have a look at QtQuick. As long as you don't need to tilt a whole window than QtQuick fits your needs.

                    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