Qt4-preview-feedback Archive, May 2007
A wish for QDialogs
Message 1 in thread
I heard that .Net :-( has a possibility to say to a dialog , that the
following lineedits has to be filled because they are neccessary. Something
like that.
As it is not that easy (imho) to change the color of a lineedit (I did not
understand the palette handling of designer at all...) it would be nice to
say to QDialog, that a list of QObjects are required so that they are
displayed in another color.
Or does QValidator something like that, to see that a value is required?
-------------------------------------
Forty-Three GmbH
Neugrabenweg 5-7
66123 Saarbrücken
Fon: +49 (0)681-95814-0
Fax: +49 (0)681-95814-14
HRB 13266 Amtsgericht Saarbrücken
Geschäftsführer: Dr. Christian Gill
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 2 in thread
J. Preiss wrote:
> I heard that .Net :-( has a possibility to say to a dialog , that the
> following lineedits has to be filled because they are neccessary. Something
> like that.
>
Well, this is doable in 4.2
(http://doc.trolltech.com/4.2/stylesheet.html, look for "mandatory").
In 4.3, we have made it even simpler,
1. Start designer and drop a QLineEdit in a dialog.
2. Select the QLineEdit and right click on the property editor and
select "Add dynamic property".
3. Give the property name "mandatory". Set the value to true.
4. Create as many QLineEdit as above by copy+pasting.
5. Right click on the dialog and "Edit StyleSheet..."
QLineEdit[mandatory="true"] { background: yellow; }
Girish
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx