Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: Skinned dialogs

  1. #21
    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: Skinned dialogs

    Quote Originally Posted by kernel_panic View Post
    one question: with qsizegrip ic can only resize to bottom-left, how can i let it resize to left or right or bottom only?
    One can place QSizeGrip to any corner and it will automatically adjust its behavior. For horizontal and vertical resize mode you will need something custom:
    1. catch the point of mouse press event
    2. resize the window on the fly in mouse move event
    I suggest taking a sneak into QSizeGrip sources for more detailed implementation hints.
    J-P Nurmi

  2. The following user says thank you to jpn for this useful post:

    kernel_panic (25th June 2007)

  3. #22
    Join Date
    Jan 2007
    Posts
    177
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Skinned dialogs

    i've made up two Skin-Classes (QSkinWidget and QSkinMainWindow) with the behavior like real widgets and windows (moving, resizing, title...) I will put them into the "Software Sektion". Thanks for all help.

  4. #23
    Join Date
    Feb 2007
    Posts
    28
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Skinned dialogs

    Hi, Is there a way to acomplish this with style sheets?
    I have my frameless widget, now, is there a way to make its border round using style sheets?
    Any help will me much appreciated
    Thanks
    CJC

  5. #24
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Skinned dialogs

    Not with style sheets. Better create a custom style for this, but you will have to do the drawing.

    Another, way simpler solution is to create a QRegion and apply it as a mask on the dialog. But this will affect the children too( everything that passes outside the bounds will get cut ).

    regards

  6. #25
    Nabeel Guest

    Default Re: Skinned dialogs

    Hi, This post of mine is very beneficial and informative, however there are some specific facts or information that I require. If anyone can help me in this matter then please send me a private message. Best Regards,

Similar Threads

  1. Using special characters in QT dialogs
    By hvengel in forum Qt Tools
    Replies: 2
    Last Post: 10th April 2007, 00:32
  2. How to chain dialogs
    By seneca in forum Qt Programming
    Replies: 12
    Last Post: 14th January 2006, 22:04

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
  •  
Qt is a trademark of The Qt Company.