Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2010

    Exclamation problem with qlist widget border

    I had a central widget with two line edits and one listwidget with 5 items..in vertical layout..
    problem is when I am pressing down key and getting focus in listwidget the list widget is showing black color border of around 4 px. I need to remove this border for this i set some style sheet like bellow

    listWidget->setStyleSheet(QString::fromUtf8("background-color: rgb(243, 243, 243);\n"
    "selection-color: rgb(0, 0, 0);\n"
    "selection-background-color: rgb(164, 193, 236);\n"
    " border-width: 4px; border-style: solid; border-color: rgb(243, 243, 243);"));

    but this does not changing the outer side border.It is drawing some border inside the qlistwidget with specified color.
    could any body help me to remove the border of listwidget so that i can use the above style to get required effect.
    Thanks & Best Regards

  2. #2
    Nokia Developer Expert
    Join Date
    Feb 2008

    Re: problem with qlist widget border

    Not sure what this frame is, but if it is a non-touch device, it might be a navigation focus rect (shows where the keyboard focus is).
    Unfortunately there is style parameter to control the rect at the moment (see http://bugreports.qt.nokia.com/browse/QTBUG-16027), but
    it might be worked around.

    Try this:

    QPalette widgetPalette = QApplication::palette();
    widgetPalette.setColor(QPalette::Text, Qt::transparent);
    QApplication::setPalette(widgetPalette, "QFocusFrame");

Similar Threads

  1. Problem with CEikSecretEditor border when skin aware
    By jscurtis in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-16, 11:51
  2. problem about border
    By yinjialiang in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-09-24, 09:44

Posting Permissions

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