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. Enabling and Disabling Window Widgets?
Forum Updated to NodeBB v4.3 + New Features

Enabling and Disabling Window Widgets?

Scheduled Pinned Locked Moved Solved General and Desktop
30 Posts 5 Posters 6.1k 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.
  • SPlattenS SPlatten

    The point is Qt is supposed to be multi-platform, I don't have a Windows PC or Linux, only Mac's and clearly it doesn't appear to work.

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

    @SPlatten
    Well not all hints are supported on all platforms.
    The name is often a give away
    like Qt::MSWindowsFixedSizeDialogHint
    Note the MS in front.
    or like X11BypassWindowManagerHint which is for linux / X11
    Its mention here.
    http://doc.qt.io/qt-5/qt.html#WindowType-enum

    The MSWindowsFixedSizeDialogHint do work on Windows.
    alt text

    1 Reply Last reply
    1
    • SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by
      #19

      Sorry, for a product as mature as Qt this isn't what I would expect, I know this kind of thing is perfectly possible, just Qt doesn't currently work correctly.

      Kind Regards,
      Sy

      mrjjM 1 Reply Last reply
      0
      • SPlattenS SPlatten

        Sorry, for a product as mature as Qt this isn't what I would expect, I know this kind of thing is perfectly possible, just Qt doesn't currently work correctly.

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

        @SPlatten
        Well it depends on platform and the Windows manger in use.
        Some combinations are not possible in Windows either.
        Also some windows mangers on linux also ignore certain Hints.
        You are aware that Qt does not draw the decorations by its self ?
        Its handled by the OS and might not offer any way to apply it
        and Qt would have to resort to custom drawn decorations.

        1 Reply Last reply
        1
        • SPlattenS Offline
          SPlattenS Offline
          SPlatten
          wrote on last edited by SPlatten
          #21

          The fact that it can be done using Xcode means its very possible go do, if Qt didn't rush out quite so many versions, the quality control would be better and the releases more functional.

          I'm a big fan of Qt and have used licensed versions of Qt for defence applications, licenses are not cheap and considering the money involved i would be a seriously disappointed by this show stopping lack of functionality.

          In less than 2 years I've seen Qt go from 5.1 to 5.11 and still going, releases seem to come out very frequently, which is good in one sense but at what cost?

          Kind Regards,
          Sy

          mrjjM 1 Reply Last reply
          0
          • SPlattenS SPlatten

            The fact that it can be done using Xcode means its very possible go do, if Qt didn't rush out quite so many versions, the quality control would be better and the releases more functional.

            I'm a big fan of Qt and have used licensed versions of Qt for defence applications, licenses are not cheap and considering the money involved i would be a seriously disappointed by this show stopping lack of functionality.

            In less than 2 years I've seen Qt go from 5.1 to 5.11 and still going, releases seem to come out very frequently, which is good in one sense but at what cost?

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

            Well i can relate to that. Personally i would rather have more
            QWidgets/Desktop than 3D and QML/Mobile but
            the commercial side of Qt must try to focus on the marked
            trends.

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

              Qt 5.1 was released 5 years ago in 2013.

              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
              2
              • SPlattenS Offline
                SPlattenS Offline
                SPlatten
                wrote on last edited by
                #24

                @SGaist , ok, still a lot of releases in a short space of time, the functionality I'm trying to use is very fundamental...shouldn't that be addressed?

                Kind Regards,
                Sy

                jsulmJ 1 Reply Last reply
                0
                • SPlattenS SPlatten

                  @SGaist , ok, still a lot of releases in a short space of time, the functionality I'm trying to use is very fundamental...shouldn't that be addressed?

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

                  @SPlatten As @mrjj said window decorations (including the close/minimize buttons) are NOT handled by Qt. Those are handled by the OS. And different OSs are different here (even different window managers on Linux differ here). You can still do this using native APIs.
                  If you think this should be part of Qt you can file a change request.

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

                  1 Reply Last reply
                  0
                  • SPlattenS Offline
                    SPlattenS Offline
                    SPlatten
                    wrote on last edited by
                    #26

                    @jsulm, thank you, how do I submit a change request?

                    Kind Regards,
                    Sy

                    jsulmJ 1 Reply Last reply
                    0
                    • SPlattenS SPlatten

                      @jsulm, thank you, how do I submit a change request?

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

                      @SPlatten See https://doc.qt.io/QtSafeRenderer/qtsr-bugs-change-requests.html

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

                      1 Reply Last reply
                      0
                      • SPlattenS Offline
                        SPlattenS Offline
                        SPlatten
                        wrote on last edited by SPlatten
                        #28

                        Thank you, I will complete this now....

                        Done, https://bugreports.qt.io/browse/QTBUG-71814

                        Kind Regards,
                        Sy

                        1 Reply Last reply
                        0
                        • SPlattenS Offline
                          SPlattenS Offline
                          SPlatten
                          wrote on last edited by
                          #29

                          @jsulm , if you can see my first posts I am OR'g in Qt::CustomizeWindowHint with each bit. I will try the WindowFlags example as I cannot guarantee that I did the same when testing with that.

                          Kind Regards,
                          Sy

                          1 Reply Last reply
                          0
                          • SPlattenS Offline
                            SPlattenS Offline
                            SPlatten
                            wrote on last edited by
                            #30

                            There is sum good news and some strange findings, I am running the WindowsFlags example on my macBook Pro.

                            The setup is as follows, from the Type radio buttons, the Window is checked. From the Hints checkboxes, Customize Window is checked.

                            With no other checkboxes the window appears with no title and no widgets, it isn't resizable.

                            With 'Window minimize button' checked, the title is visible and only the minimize widget is visible.

                            If I then enable 'Window maximise button', the maximise widget is enabled along with the minimise widget.

                            If I enable 'Window close button', the close widget is enabled

                            Toggling 'Window Title', 'Frameless window', or 'Window shade button' have no effect.

                            Kind Regards,
                            Sy

                            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