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. How to create VS2013 like frameless window with dark style
Forum Updated to NodeBB v4.3 + New Features

How to create VS2013 like frameless window with dark style

Scheduled Pinned Locked Moved Unsolved General and Desktop
45 Posts 5 Posters 18.0k Views 5 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.
  • mrjjM mrjj

    @saeid0034
    Hmm so apparently the FrameLess is not the actual parent. must be a holding frame or something.
    (i dont have it installed )

    try
    if (parentWidget()->parentWidget())
    parentWidget()->parentWidget()->hide();

    and see if thats enough :)

    S Offline
    S Offline
    saeid0034
    wrote on last edited by
    #36

    @mrjj said in How to create VS2013 like frameless window with dark style:

    if (parentWidget()->parentWidget())
    parentWidget()->parentWidget()->hide();

    Thanks
    the blank window disappeared but it still open as you can see
    07dd8539-41f2-4726-9dd2-7f8197079a7e-image.png

    mrjjM 1 Reply Last reply
    0
    • S saeid0034

      @mrjj said in How to create VS2013 like frameless window with dark style:

      if (parentWidget()->parentWidget())
      parentWidget()->parentWidget()->hide();

      Thanks
      the blank window disappeared but it still open as you can see
      07dd8539-41f2-4726-9dd2-7f8197079a7e-image.png

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

      @saeid0034
      But its not on screen any more?
      Is that with alt+tab ?

      S 1 Reply Last reply
      1
      • mrjjM mrjj

        @saeid0034
        But its not on screen any more?
        Is that with alt+tab ?

        S Offline
        S Offline
        saeid0034
        wrote on last edited by
        #38

        @mrjj said in How to create VS2013 like frameless window with dark style:

        @saeid0034
        But its not on screen any more?
        Is that with alt+tab ?

        yes it not on screen anymore but still open
        yest i take screen shot from alt+tab
        17c59b1d-cba7-4cb9-9d7d-909f3c134e12-image.png

        mrjjM 1 Reply Last reply
        0
        • S saeid0034

          @mrjj said in How to create VS2013 like frameless window with dark style:

          @saeid0034
          But its not on screen any more?
          Is that with alt+tab ?

          yes it not on screen anymore but still open
          yest i take screen shot from alt+tab
          17c59b1d-cba7-4cb9-9d7d-909f3c134e12-image.png

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

          @saeid0034
          Hmm very odd. I think it might be something stil from FrameLess but not sure what it is.

          S 1 Reply Last reply
          1
          • mrjjM mrjj

            @saeid0034
            Hmm very odd. I think it might be something stil from FrameLess but not sure what it is.

            S Offline
            S Offline
            saeid0034
            wrote on last edited by saeid0034
            #40

            @mrjj said in How to create VS2013 like frameless window with dark style:

            @saeid0034
            Hmm very odd. I think it might be something stil from FrameLess but not sure what it is.

            you think there is no way to fix that?
            i use it for my whole project

            mrjjM 1 Reply Last reply
            0
            • S saeid0034

              @mrjj said in How to create VS2013 like frameless window with dark style:

              @saeid0034
              Hmm very odd. I think it might be something stil from FrameLess but not sure what it is.

              you think there is no way to fix that?
              i use it for my whole project

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

              @saeid0034
              Hi
              Im pretty sure all of it can be hidden as its just widgets but not sure
              what that invisible caption really is.
              inside it just does
              ui->windowContent->layout()->addWidget(w);

              so parentWidget()->parentWidget()->hide(); should do it but
              maybe there is something else it creates like maybe the fake caption we can see of something like that.

              S 1 Reply Last reply
              1
              • mrjjM mrjj

                @saeid0034
                Hi
                Im pretty sure all of it can be hidden as its just widgets but not sure
                what that invisible caption really is.
                inside it just does
                ui->windowContent->layout()->addWidget(w);

                so parentWidget()->parentWidget()->hide(); should do it but
                maybe there is something else it creates like maybe the fake caption we can see of something like that.

                S Offline
                S Offline
                saeid0034
                wrote on last edited by
                #42

                @mrjj there is anything i can do with it?
                this framelees is really good but if only i can fix this problem

                mrjjM 1 Reply Last reply
                0
                • S saeid0034

                  @mrjj there is anything i can do with it?
                  this framelees is really good but if only i can fix this problem

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

                  @saeid0034
                  Dont worry, we will nail it.

                  replace

                  if (parentWidget()->parentWidget())
                  parentWidget()->parentWidget()->hide();
                  

                  with

                    auto w = parentWidget();
                      while ( w ) {
                          w->hide();
                          w = w->parentWidget();
                      }
                  

                  this hides the sample it comes with. Nothing in alt+tab after. So i cross fingers :)

                  S 1 Reply Last reply
                  1
                  • mrjjM mrjj

                    @saeid0034
                    Dont worry, we will nail it.

                    replace

                    if (parentWidget()->parentWidget())
                    parentWidget()->parentWidget()->hide();
                    

                    with

                      auto w = parentWidget();
                        while ( w ) {
                            w->hide();
                            w = w->parentWidget();
                        }
                    

                    this hides the sample it comes with. Nothing in alt+tab after. So i cross fingers :)

                    S Offline
                    S Offline
                    saeid0034
                    wrote on last edited by
                    #44

                    @mrjj said in How to create VS2013 like frameless window with dark style:

                    auto w = parentWidget();
                    while ( w ) {
                    w->hide();
                    w = w->parentWidget();
                    }

                    thanks man
                    this time only a window open
                    f17d9e4b-8a06-459a-b5ff-5ff6e463acf6-image.png
                    thanks for all your helps

                    mrjjM 1 Reply Last reply
                    1
                    • S saeid0034

                      @mrjj said in How to create VS2013 like frameless window with dark style:

                      auto w = parentWidget();
                      while ( w ) {
                      w->hide();
                      w = w->parentWidget();
                      }

                      thanks man
                      this time only a window open
                      f17d9e4b-8a06-459a-b5ff-5ff6e463acf6-image.png
                      thanks for all your helps

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

                      @saeid0034
                      Ok good :)
                      so it really has many parts :)

                      1 Reply Last reply
                      1

                      • Login

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