Results 1 to 6 of 6

Thread: rounded edges in qmainwindow

  1. #1

    Default rounded edges in qmainwindow

    Hello everybody,

    I would like to create qmainwindow with my png backgriund with rounded corners. Unfortunately, when i've loaded my image as background (i'm using qss) i see that corners are rounded but it is field that is not covered by background is not transparent. Can you tell me how can i achieve this? How to create qmainwindow with rounded corners??

    Thank you,

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: rounded edges in qmainwindow

    did you see this thread. it's very similar to your issue.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3

    Default Re: rounded edges in qmainwindow

    hmm yeah that it, but i see that setMask is lowering performance? is there some directives to optimize it?

    By "lowering performance" i mean that when i move window it is painting v. slow

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: rounded edges in qmainwindow

    What platform are you on? Maybe you can use ARGB windows?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5

    Default Re: rounded edges in qmainwindow

    Yes, I'm using only windows - can you give me some links or detailed explanations bout that?

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: rounded edges in qmainwindow

    If you are using Windows then you can't use ARGB windows But if you are running Qt 4.5, then you can use Qt::WA_TranslucentBackground attribute.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QMainWindow with QMainWindow
    By baray98 in forum Qt Programming
    Replies: 3
    Last Post: 12th April 2011, 07:07
  2. Widget with rounded edges
    By gruszczy in forum Qt Programming
    Replies: 14
    Last Post: 26th April 2009, 07:03
  3. QMainWindow setCentralWidget from ui widget, Qt4
    By alan in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2008, 13:00
  4. QMainWindow child of a QDialog
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 16th January 2008, 07:16
  5. Replies: 18
    Last Post: 22nd February 2006, 20:51

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.