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. Qt Custom closable windows
Forum Updated to NodeBB v4.3 + New Features

Qt Custom closable windows

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 2.4k 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.
  • R Offline
    R Offline
    RichardM198030
    wrote on last edited by
    #1

    I looked at the QDecorations Example, but didn't appear to be what I was looking for. I was looking for a way to make custom windows closable, but able to move the windows around still, by this, I mean, completely removing the X, -, and Maximimize Button, I'm also thinking this isn't possible? If somebody has any idea what I'm referring too, and can point me in the right direction, it'd be appreciated, thanks, =).

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      I think it should be possible with the "Qt::WindowFlags":http://doc.trolltech.com/latest/qt.html#WindowType-enum passed to the widget. Read the docs to be sure though.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RichardM198030
        wrote on last edited by
        #3

        [quote author="Franzk" date="1314767977"]I think it should be possible with the "Qt::WindowFlags":http://doc.trolltech.com/latest/qt.html#WindowType-enum passed to the widget. Read the docs to be sure though.[/quote]

        Thanks for the reply, =).

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #4

          There is an "example":http://doc.trolltech.com/latest/widgets-windowflags.html ,about using the Window Flags.


          Declaration of (Platform) independence.

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

            But there are restirictions to the windows flags. Like if you want to have a system menu on windows, you (AFAIK) automatically get a close button.

            AFAIK you can change that on windows by reimplementing WM_NCXXX messages in the winEvent function of a widget...

            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

            • Login

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