Results 1 to 3 of 3

Thread: QDialog with rounded corners

  1. #1
    Join Date
    Mar 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QDialog with rounded corners

    Hi



    I'm trying to create a modal dialog with round corners

    I tried to use

    QDialog#Dialog {

    border-width: 2px;

    border-radius: 20px;

    }

    but that does not make any difference

    Any idea?

    Thanks

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QDialog with rounded corners

    QDialog supports only these options:

    1. background
    2. background-clip
    3. background-origin
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QDialog with rounded corners

    Please search the forums for "rounded corners".
    J-P Nurmi

Similar Threads

  1. rounded edges in qmainwindow
    By m.wojcik in forum Qt Programming
    Replies: 5
    Last Post: 11th March 2009, 14:12
  2. adding QAction to QDialog is not working
    By sanjayshelke in forum Qt Programming
    Replies: 3
    Last Post: 13th August 2008, 10:39
  3. Resizing a QDialog to the content size
    By Nyphel in forum Qt Programming
    Replies: 8
    Last Post: 15th March 2007, 09:16
  4. Toplevel widget with rounded corners.
    By munna in forum Qt Programming
    Replies: 7
    Last Post: 18th August 2006, 21:46
  5. widget with rounded corners
    By sreedhar in forum Qt Programming
    Replies: 4
    Last Post: 7th June 2006, 13:18

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.