Results 1 to 3 of 3

Thread: Set the Border of MainWindow After setWindowFlags(Qt::FramelessWindowHint);

  1. #1
    Join Date
    May 2007
    Posts
    110
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Set the Border of MainWindow After setWindowFlags(Qt::FramelessWindowHint);

    Hi

    I am using Qt 4.6.4 In Windows and setWindowFlags(Qt::FramelessWindowHint); Now My MainWindow becomes Without TitleBar but with without Border.

    I want to set the Border and don't want to remove Border of Window after setWindowFlags(Qt::FramelessWindowHint);. Is there any style sheet for do this.

    Kindly tell me the solution.

    Thanks
    Santosh

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Set the Border of MainWindow After setWindowFlags(Qt::FramelessWindowHint);

    Can you rephrase that?

    You want to remove the standard border and add a different one?

    Cheers,
    _

  3. #3
    Join Date
    May 2007
    Posts
    110
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Set the Border of MainWindow After setWindowFlags(Qt::FramelessWindowHint);

    Hi

    Actually my project requirements is to use our own title bar. That's why I made using frameless hint window flags. I created custom title bar. But by using this flags default title bar and border removed. But we want that when we use custom title bar border should not be removed or else any style sheets to make border width and color.

    Kindly reply this.

    Why required... If one frameless dialog open above other frameless dialog on any button click. Both dialog' edges is merged.
    That's why I need border of frameless dialog.

    Thanks
    Santosh

Similar Threads

  1. Replies: 5
    Last Post: 24th August 2010, 13:16
  2. Qt Jambi: How I can use setWindowFlags()?
    By el_Diablo in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2008, 21:23
  3. setWindowFlags(Qt::FramelessWindowHint)
    By smarinr in forum Qt Programming
    Replies: 5
    Last Post: 30th April 2008, 20:12
  4. enterEvent, leaveEvent, setWindowFlags
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 3rd February 2007, 09:15
  5. QDialog::setWindowFlags() problem
    By Lemming in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2006, 15:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.