Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How to disable a window without menuBar?

    General and Desktop
    4
    4
    548
    Loading More Posts
    • 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.
    • michalt38
      michalt38 last edited by

      Hello,

      is it possible to disable a whole window just without menuBar?

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @michalt38 last edited by

        @michalt38
        no, once a widget is disabled all of its (grand-)children are also disabled.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply Reply Quote 1
        • Pradeep Kumar
          Pradeep Kumar last edited by

          @michalt38
          Qt follows parent child relationship .

          @raven-worx
          mentions the relationship.

          hope this helps you.

          Pradeep Kumar
          Qt,QML Developer

          1 Reply Last reply Reply Quote 1
          • C
            ChrisW67 last edited by

            For QMainWindow: If you want to disable the contents of the window, not the entire window, just disable the centralWidget() and toolbars. If the window is a QWidget and not a QMainWindow then make a single widget to act as the content area and enable/disable that.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post