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. Where can I find win95/win2000 stylesheet?
Forum Updated to NodeBB v4.3 + New Features

Where can I find win95/win2000 stylesheet?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 5 Posters 1.3k 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.
  • Q Offline
    Q Offline
    Q74r3wq-
    wrote on last edited by Q74r3wq-
    #1

    Hi experts,
    The default windows style is still too flat for my taste. What I'm looking for is something similar to this:

    f101a4bf-4332-48ab-842c-fb6fc317aac2-image.png

    I'm sure I'm not the only one who feels this but somehow I couldn't find aything even remotely related to win95/2000 qss online. Maybe I didn't enter the right key words?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SimonSchroeder
      wrote on last edited by
      #5

      Concerning the title of your question: The Window XP style is not implemented as stylesheet. It is a QStyle, i.e. it is all implemented via C++ directly. BTW, I wouldn't expect any style to change the title bar on Windows, as this is usually provided by the OS.

      Q 1 Reply Last reply
      1
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Qt still delivers the winxp style - > "windowsxp"

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        Q JKSHJ 2 Replies Last reply
        2
        • Christian EhrlicherC Christian Ehrlicher

          Qt still delivers the winxp style - > "windowsxp"

          Q Offline
          Q Offline
          Q74r3wq-
          wrote on last edited by
          #3

          @Christian-Ehrlicher Thanks, I tried this but it still shows the flat view. I'm using QT6 could this be the reason?

          code:

          int main(int argc, char *argv[])
          {
              QApplication a(argc, argv);
              a.setStyle("windowsxp");
              QtStudy w;
              w.show();
              return a.exec();
          }
          
          1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            Qt still delivers the winxp style - > "windowsxp"

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #4

            @Christian-Ehrlicher said in Where can I find win95/win2000 stylesheet?:

            Qt still delivers the winxp style - > "windowsxp"

            Try "windows" instead of "windowsxp".

            It's still in Qt 6; call QStyleFactory::keys() to see the list of available styles.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            2
            • S Offline
              S Offline
              SimonSchroeder
              wrote on last edited by
              #5

              Concerning the title of your question: The Window XP style is not implemented as stylesheet. It is a QStyle, i.e. it is all implemented via C++ directly. BTW, I wouldn't expect any style to change the title bar on Windows, as this is usually provided by the OS.

              Q 1 Reply Last reply
              1
              • S SimonSchroeder

                Concerning the title of your question: The Window XP style is not implemented as stylesheet. It is a QStyle, i.e. it is all implemented via C++ directly. BTW, I wouldn't expect any style to change the title bar on Windows, as this is usually provided by the OS.

                Q Offline
                Q Offline
                Q74r3wq-
                wrote on last edited by
                #6

                @SimonSchroeder Thanks, I'll accept this as the correct answer and disregard the problem. Probalby not worth it as even winxp is not the one I seek.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  Patnam Kannabhiram
                  wrote on last edited by
                  #7

                  [PyQt5] Hey man,I saw something while running the Windows OS on the VirtualBox on low memory. I think the Windows 10 UI is just a wrapper to the older version inside, I found out that we can directly make the window that look like Win 95/2000. So what I did was disable the Windows visual styles by calling SetWindowTheme(hwnd, "", ""). This forces it to show the classical UI.

                  This is the source code.

                  import sys
                  import ctypes
                  from PyQt5.QtWidgets import QApplication, QWidget
                  
                  # Load uxtheme.dll
                  uxtheme = ctypes.windll.uxtheme
                  
                  # Define SetWindowTheme prototype
                  SetWindowTheme = uxtheme.SetWindowTheme
                  SetWindowTheme.argtypes = [ctypes.c_void_p, ctypes.c_wchar_p, ctypes.c_wchar_p]
                  SetWindowTheme.restype = ctypes.c_int
                  
                  class ClassicWindow(QWidget):
                      def __init__(self):
                          super().__init__()
                          self.setWindowTitle("A7's Garage")
                          self.setGeometry(100, 100, 300, 200)
                  
                      def showEvent(self, event):
                          super().showEvent(event)
                          # Get native hwnd
                          hwnd = self.winId().__int__()
                          # Disable visual styles (classic theme)
                          SetWindowTheme(hwnd, "", "")
                          
                  if __name__ == "__main__":
                      app = QApplication(sys.argv)
                      window = ClassicWindow()
                      window.show()
                  

                  A7's Garage.PNG

                  If this is what you people wanted, I am happy for it.

                  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