Results 1 to 3 of 3

Thread: border color is wrong with "plastique" style in Qt4.2.3

  1. #1
    Join Date
    Feb 2007
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default border color is wrong with "plastique" style in Qt4.2.3

    Machine: Linux 2.4.21-4.ELsmp #1 SMP
    When I run
    ~/qt-x11-commercial-src-4.2.3/examples/widgets/lineedits/lineedits -style plastique
    I find the the border color of "lineEdit" widget is different from Qt4.1.3's.
    The border is thick black, and look ugly.

    Is it really Qt4.2.3 bug?
    If yes, how can we fixed?
    If no, how can we avoid it ?

    The Qt4.2.3 Library configuration option is
    configure -static -debug -no-fontconfig -no-xrandr -no-glib -no-iconv

    By the way,
    The same condition on Solaris machine.

  2. #2
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    124
    Thanked 38 Times in 30 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: border color is wrong with "plastique" style in Qt4.2.3

    Since 4.2, Plastique uses alpha mapping, which requires XRender on X11. Solaris does support X servers with XRender support, IIRC. In 4.1, Plastique didn't use alpha mapping so it looked better on older X servers. We used hacks to fake semi-transparent behavior, but unfortunately those hacks made it impossible for Plastique to support gradients and texture brushes. For the simplest case, in 4.1 Plastique was the only style that had real problems with any palette changes, such as making a button red.

    In 4.2, Plastique supports all palette features, gradients and textures. But because it needs alpha mapping, it doesn't look good on older X servers.
    Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
    Nokia Software Manager, Qt Development

  3. The following user says thank you to Bitto for this useful post:

    alfa_wu (30th April 2007)

  4. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: border color is wrong with "plastique" style in Qt4.2.3

    I've seen something like this before on occasion. I don't know if it is the same problem though. Twice I have had problems installing Qt, where the the widgets looked very bad, almost as if the display were set to 8 bit color. In both cases I reinstalled Qt and the problem went away.

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.