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. [SOLVED] Window style
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Window style

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.1k 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.
  • M Offline
    M Offline
    master of disaster
    wrote on last edited by
    #1

    I want to change the layout of my application so that it doesn't look like a classic window but like an individual style, like it is used e.g. with Visual Studio (picture).

    !http://blog.nuclex-games.com/wp-content/uploads/2012/06/visual-studio-2012-rc.png!

    How is this possible with Qt?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jake007
      wrote on last edited by
      #2

      Take a look at "this":http://qt-project.org/forums/viewthread/21548 thread.
      There is also a sample ( for styling frame). But performance is terrible ( at least on my test project). I noticed it when resizing window or adding/removing docks.

      For styling, widgets, take a look at "this":http://doc.qt.digia.com/qt/stylesheet-examples.html.


      Code is poetry

      1 Reply Last reply
      0
      • M Offline
        M Offline
        master of disaster
        wrote on last edited by
        #3

        My window turns partially black, but I don't know how to create a window that has a title bar looking like the one of visual studio...

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jake007
          wrote on last edited by
          #4

          Turns out partially black where? Which OS, Qt version?

          You cannot override default window style. You can only hide ( frameless window hint), and make everything your own ( label for title, push/tool buttons for maximize, minimize, close etc...).

          "This":https://rapidshare.com/#!download|853p1|4247249615|FramesWithShadow.zip|12|0|0 zip file provided in thread that I posted previously has everything you need to create custom title bar, border, border shadow... Only restyle it with css (qss).


          Code is poetry

          1 Reply Last reply
          0
          • M Offline
            M Offline
            master of disaster
            wrote on last edited by
            #5

            Excellent - it works with the zip package. I think I used the wrong code earlier. Thanks!

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jake007
              wrote on last edited by
              #6

              I'm glad you got it working :) .
              Please mark thread as solved.

              Regards,
              Jake


              Code is poetry

              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