×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Question Background color and border-radius

    Hi all,

    How can I implement on Text item in QML, the below stylesheet that i have used in my qtGui (mainwindow.ui) on a Qlabel.
    Code:
    label4->setStyleSheet("QLabel{ gridline-color: rgb(255, 0, 0); font: 87 7pt \"HelveticaNeueLT Com 95 Blk\";color: rgb(255,255, 255); padding: 2px;border-style: solid; background-color: rgb(72, 134, 134);border-radius: 8px;} ");
    Thanks for your help.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Background color and border-radius

    For background color :

    Code:
     QLabel { background-color: yellow }
     QLineEdit { background-color: rgb(255, 0, 0) }
    And for border this, you can attach this property with QLabel in your case.

    Code:
    QLineEdit { border: 1px solid white }
    Regards,
    rahul

Similar Threads

  1. Chage Menupane text color & background color
    By LAS_VEGAS in forum Symbian User Interface
    Replies: 2
    Last Post: 2012-04-13, 12:09
  2. CEikTextButton background color. Phone theme color.
    By Dmitry__ in forum Symbian C++
    Replies: 0
    Last Post: 2009-04-23, 08:59
  3. Text Field Border Color
    By Asif Nazir in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-02-07, 11:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •