Results 1 to 3 of 3

Thread: 3D Effect

  1. #1
    Join Date
    Mar 2010
    Location
    Italy, Rome
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Smile 3D Effect

    Hi,
    I'd like to give a deeper 3D effect to some widgets like combo boxes, line edit(s), tabs ecc.. My intention is to bring the border thickness from 1 to 2 pixels.
    I need (if possible) to avoid to work with stylesheet, because if I add a stylesheet property, I lost all the other like background color, ecc.
    Thank you in advance.
    Andrea

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,709
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: 3D Effect

    Some (maybe most) widgets allow their border style and thickness to be set through designer.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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

    Default Re: 3D Effect

    Quote Originally Posted by andzoff View Post
    Hi,
    I'd like to give a deeper 3D effect to some widgets like combo boxes, line edit(s), tabs ecc.. My intention is to bring the border thickness from 1 to 2 pixels.
    I need (if possible) to avoid to work with stylesheet, because if I add a stylesheet property, I lost all the other like background color, ecc.
    I think in the end you will have to develop a dedicated style using QStyle API. You can see if there are style hints for controlling the bevel.
    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. QT_NO_PRINTER doesn't have effect
    By vcp in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2010, 13:03
  2. What's effect of QT_BEGIN_NAMESPACE? Thanks
    By mihayinoviki in forum Qt Programming
    Replies: 10
    Last Post: 19th August 2009, 19:21
  3. mac os dialog effect?
    By 0xl33t in forum Newbie
    Replies: 5
    Last Post: 3rd August 2009, 17:05
  4. Help for 3D like Visual Effect.
    By AmolShinde_8 in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2008, 15:25
  5. Help with a visual effect
    By SkripT in forum Qt Programming
    Replies: 25
    Last Post: 7th May 2006, 19:15

Tags for this Thread

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.