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. [Moved] Painting in the NonClientArea

[Moved] Painting in the NonClientArea

Scheduled Pinned Locked Moved General and Desktop
7 Posts 5 Posters 7.0k Views 1 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.
  • D Offline
    D Offline
    diegosarmentero
    wrote on last edited by
    #1

    Hi All!
    I want to create an application whit a custom TitleBar, I know that I can set the Widget with the FramelessWindowHint flag and create my own TitleBar as a widget in the Client Area, but doing it in this way I have to handle all the events of resizing, maximize, etc, etc by myself.

    The question is:
    Is there any way to paint over the Non Client Area in a window?

    Diego Sarmentero
    Blog: http://diegosarmentero.com.ar
    Twitter: http://twitter.com/diegosarmentero

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      You might have a look into "this thread":http://developer.qt.nokia.com/forums/viewthread/3331/, seems to be the same problem.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • D Offline
        D Offline
        diegosarmentero
        wrote on last edited by
        #3

        Thanks!
        I'll check that!

        Diego Sarmentero
        Blog: http://diegosarmentero.com.ar
        Twitter: http://twitter.com/diegosarmentero

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          Hi,

          in fact it's the same problem, but there is no full solution on the net now. I've managed to do it, but it takes time to do it in a way so it is usable for the wiki. It's a bit tricky to handle all repaint events, as there are often direct calls to NC_PAINT without the event loop. Wait a bit, it's on my list, but not for today or tomorrow...

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • D Offline
            D Offline
            diegosarmentero
            wrote on last edited by
            #5

            Hi! I'll working on that almost full time...
            When I finish that it would be nice to share it on the wiki with a complete example and I'm sure that some improves will come out from that.

            Regards!

            Diego Sarmentero
            Blog: http://diegosarmentero.com.ar
            Twitter: http://twitter.com/diegosarmentero

            1 Reply Last reply
            0
            • Y Offline
              Y Offline
              Yash
              wrote on last edited by
              #6

              Any progress?

              [quote author="diegosarmentero" date="1297852088"]Hi! I'll working on that almost full time...
              When I finish that it would be nice to share it on the wiki with a complete example and I'm sure that some improves will come out from that.

              Regards![/quote]

              http://kineticwing.com : Web IDE, QSS Editor
              http://speedovation.com : Development Lab

              1 Reply Last reply
              0
              • E Offline
                E Offline
                ekoswibowo
                wrote on last edited by
                #7

                I am working on this case too. Yes, Qt.FramelessWindowHint is not a solution. We'll have to draw in NCA. I am using PyQt by the way and still finding trouble of trying to create QPainter object. It creates this warning, QPainter::begin: Paint device returned engine == 0, type: 1

                Any suggestion?

                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