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. QMainWindow skin for frame

QMainWindow skin for frame

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 884 Views
  • 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.
  • P Offline
    P Offline
    pomestnik
    wrote on last edited by pomestnik
    #1

    Hello i am using QT for creating multi-platform application. How can i set image-frame for my main window. Like this:
    0_1518167674137_skin-example.jpg

    jsulmJ 1 Reply Last reply
    0
    • P pomestnik

      Hello i am using QT for creating multi-platform application. How can i set image-frame for my main window. Like this:
      0_1518167674137_skin-example.jpg

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @pomestnik Do you mean the window decoration? You can't do this with Qt as it is outside of the scope of Qt. You will need to use platform specific APIs.

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

      1 Reply Last reply
      1
      • P Offline
        P Offline
        pomestnik
        wrote on last edited by
        #3

        yep.. i mean window-skin (decoration). The skin system like in winamp\aimp audio players for example, but only for QMainWindow frame. Elements inside will be styled with qss stylesheet.
        I don't want using platform specific APIs because it's multi-platform application...

        jsulmJ 1 Reply Last reply
        0
        • P pomestnik

          yep.. i mean window-skin (decoration). The skin system like in winamp\aimp audio players for example, but only for QMainWindow frame. Elements inside will be styled with qss stylesheet.
          I don't want using platform specific APIs because it's multi-platform application...

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @pomestnik As I said: you can't do that with Qt.

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

          1 Reply Last reply
          1
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Only option is to use Qt::FramelessWindowHint and make fake borders and handle all move/resize yourself.
            However, its not really recommended.

            1 Reply Last reply
            3

            • Login

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