[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: "read-only" QComboBox
From:       Torben Weis <weis () troll ! no>
Date:       1999-03-22 20:11:13
[Download RAW message or body]

Hi,

On Fri, 19 Mar 1999, Alexander Raimondi wrote:

> Hi
> 
> I've got a Dialog including a QComboBox. ( only select, no input; rw==false) 
> The diaolg is either for the user to input data or only to display the data (
> read-only ). 
> 
> There are also some QEditLine in it. For read-only i call
> setFocusPolicy(NoFocus) for every EditLine. -> User can't change the displaied
> data..
> 
> But doing the same for QComboBox woun't work. The user can change the object by
> mouse. 
> If i call setEnabled( false ) there's another background color...
> Is there an easy way to disable QComboBox without changing backgroundcolor ??

The changed background color is used to show that it is readonly.
Having the same color without the thingy being editable for the user
would be a BUG.

Using setFocusPolicy as you do is a BUG, too.
Using setEnabled is the correct way.

Bye
torben

> Thanks 
> 
> Alex
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic