up, still haven't figured out why!
up, still haven't figured out why!
I am having the same issue. Once setStylesheet("anything other than empty"); is called the spin boxes and line edits malfunction.
Mac Os X using Qt 4.5 LGPL
My steps to reproduce:
Call setStylesheet("QLabel{background:blue;}")
Click in one spin box and the text etc works properly.
Click in another spin box in another layout and notice the text does not appear to be editable however typing does change the value without any feedback other than valueChanged being called however, the actual text area does not update until the focus has changed to another control.
Last edited by Nocuous; 29th April 2009 at 19:09.
Possible work around:
I have found this bug does not exist when you disable the Mac focus rectangle on each of the text based controls.
Example
control->setAttribute(Qt::WA_MacShowFocusRect, false);
Hi Nocuous!
This bug has been fixed in the last qt update. You can download it here, this was a known issue in Qt.
Boris
Bookmarks