Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Windows without title bar but with border

Windows without title bar but with border

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 4 Posters 22.7k 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.
  • M Offline
    M Offline
    mrAlmond
    wrote on 26 Jul 2011, 13:50 last edited by
    #1

    Hi everyone,

    I'm trying to create a dialog in Qt without titlebar but with a border. I've tried Qt::FramelessWindowHint but this removes also the border.
    I've tried also Qt::CustomizeWindowHint but in this case I obtain a partial and ugly blue border.
    I'm using Qt embedded with the qws window system.

    Thanks for the help.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on 26 Jul 2011, 19:04 last edited by
      #2

      May be this "example":http://doc.qt.nokia.com/4.7/widgets-windowflags.html is good for you. Many types of windows are demonstrated.


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rahul Das
        wrote on 26 Jul 2011, 19:16 last edited by
        #3

        It is also there in QtCreator welcome->choose an example ->widgets -> window flags. Worth looking, i guess. Good Luck.


        Declaration of (Platform) independence.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrAlmond
          wrote on 28 Jul 2011, 12:29 last edited by
          #4

          Thank you for your reply. Unfortunately none of these examples it's what I need. So I ended up by doing a custom dialog without frame decorations. In this dialog I've placed a dark background color and then I've used an overlying element a little smaller so the background looks like a border.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rahul Das
            wrote on 28 Jul 2011, 12:37 last edited by
            #5

            Thats cool. :) So, it is solved :)


            Declaration of (Platform) independence.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mrAlmond
              wrote on 28 Jul 2011, 12:40 last edited by
              #6

              More or less...it's a dirty workaround.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andre
                wrote on 21 Nov 2011, 09:52 last edited by
                #7

                Split off a "new issue":http://developer.qt.nokia.com/forums/viewthread/11793/ on this, but on the linux desktop.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  devastheempty
                  wrote on 22 Aug 2014, 08:39 last edited by
                  #8

                  I had the sam problem and accidentally found acceptable solution?
                  this will produce resizeable window without title:
                  @w->setWindowFlags(Qt::Tool|Qt::CustomizeWindowHint);@

                  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