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
Forum Updated to NodeBB v4.3 + New Features

QMainWindow skin for frame

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 891 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.
  • P Offline
    P Offline
    pomestnik
    wrote on 9 Feb 2018, 09:16 last edited by pomestnik 2 Sept 2018, 09:16
    #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

    J 1 Reply Last reply 9 Feb 2018, 09:46
    0
    • P pomestnik
      9 Feb 2018, 09:16

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 9 Feb 2018, 09:46 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 9 Feb 2018, 11:19 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...

        J 1 Reply Last reply 9 Feb 2018, 11:48
        0
        • P pomestnik
          9 Feb 2018, 11:19

          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...

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 9 Feb 2018, 11:48 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
          • M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 10 Feb 2018, 00:22 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

            1/5

            9 Feb 2018, 09:16

            • Login

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