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. Extend UI to Title bar: How to have UI like Figma application?
QtWS25 Last Chance

Extend UI to Title bar: How to have UI like Figma application?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtabbarqtabwidgettitle bar
4 Posts 2 Posters 461 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.
  • H Offline
    H Offline
    Hai Anh Luu
    wrote on last edited by
    #1

    As the image I attached below, I want to put the Tab bar in the title bar.

    Currently, I am coding as follows: self.setWindowFlags(Qt.FramelessWindowHint) and customizing my titlebar with Maximum, Minimize, Close buttons. And I use QTabWidget to manage it.

    But I haven't found a solution to the problem: when the user holds the mouse at the tab bar position and drags, the application window must move with the mouse, or when the user has two monitors, when they want to switch applications. From one screen to another, when the user clicks and drags the tab bar, the application can be dragged to another screen. Anyone have idea? Help me please!

    30274e7a-9fd6-41b9-9214-1255edafcd03-image.png

    Pl45m4P 1 Reply Last reply
    0
    • H Hai Anh Luu

      As the image I attached below, I want to put the Tab bar in the title bar.

      Currently, I am coding as follows: self.setWindowFlags(Qt.FramelessWindowHint) and customizing my titlebar with Maximum, Minimize, Close buttons. And I use QTabWidget to manage it.

      But I haven't found a solution to the problem: when the user holds the mouse at the tab bar position and drags, the application window must move with the mouse, or when the user has two monitors, when they want to switch applications. From one screen to another, when the user clicks and drags the tab bar, the application can be dragged to another screen. Anyone have idea? Help me please!

      30274e7a-9fd6-41b9-9214-1255edafcd03-image.png

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Hai-Anh-Luu said in Extend UI to Title bar: How to have UI like Figma application?:

      when the user holds the mouse at the tab bar position and drags, the application window must move with the mouse, or when the user has two monitors, when they want to switch applications.

      This is weird design. Why you want it to be like that? How should the tabs move then?
      Usually you can drag the QTab and not the whole window like this.

      So you are building an app like Firefox or Chrome browser with tabs?
      Have you searched if there are any templates or tutorials around?


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      H 1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        @Hai-Anh-Luu said in Extend UI to Title bar: How to have UI like Figma application?:

        when the user holds the mouse at the tab bar position and drags, the application window must move with the mouse, or when the user has two monitors, when they want to switch applications.

        This is weird design. Why you want it to be like that? How should the tabs move then?
        Usually you can drag the QTab and not the whole window like this.

        So you are building an app like Firefox or Chrome browser with tabs?
        Have you searched if there are any templates or tutorials around?

        H Offline
        H Offline
        Hai Anh Luu
        wrote on last edited by
        #3

        @Pl45m4 said in Extend UI to Title bar: How to have UI like Figma application?:

        So you are building an app like Firefox or Chrome browser with tabs?

        Yes, i want to build an app have UI tab like Firefox or Chrome, each tab will contain grid layout for show camera preview. I don't need move tab, i just want have titlebar like that and can drag to move window.

        @Pl45m4 said in Extend UI to Title bar: How to have UI like Figma application?:

        Have you searched if there are any templates or tutorials around?

        I searched a lot but couldn't find the answer

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hai Anh Luu
          wrote on last edited by Hai Anh Luu
          #4

          I find this docs in Microsoft, but they use C#. I don't know If Qt can do the same as them?

          Microsoft Title bar

          9035dd12-20d8-40d1-8733-563f3ae7d060-image.png

          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