Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Does anyone know how I can remove the black background of the two controls at the top? I want the background hghlight to disappear as it looks quite ugly...something transparent like the QListBox at the very bottom should do the trick but I have no idea how to do that for the top two. The first widget is a QLineEdit and the second one is a QMultiLineEdit...I'm running Qt 2.3.6...any help is appreciated...thanks.
I wonder whether or not you can use setBackgroundColor() function. And I also wonder you can specify the color when you put them onto widget while you are desinging in QT Designer Properties tab. I think long ago, I changed the color of a label with this property.
Nope unfortunately this function won't do the trick. I'm looking for a way to remove the whole background color and not set it to a different color; just the same way QListBox at the bottom looks.
Sorry insisting on the similar idea, but If I were you I would get the background color of the widget and set the QLineEdit's color to this color. I have not a QT access when I am writing this. So if you dont want to do like I explained above. You can set the no background to LineEdit. Is there any option in the Properties menu. There was a bacground color option. Maybe There is a option to disable the background color so LineEdit can be make as the same color with the widget.
But Is there something wrong to set the LineEdit to Widget's color?
No I cannot use any color simply because the background doesn't have one. I mean there's an image in the background and I cannot just take the color of the background and set the QLineEdit to it; there's no such color. As for setting the background color of the QLineEdit to none; for some reason that doesn't work... I don't see such a property in Qt Designer for the QLineEdit and it's probably why it's not working...
I understand the problem now. Well did you look at the palette properties of QLineEdit. There some areas there Highlight, Base, Foreground etc. I never need such a property so i dont really know the solution of your problem. You can look these properties. If it does not work, you set the same image to QLineEdit as you used for dialog. You can do this bu using backgroundPixmap in the Properties.
By the way, How did you managed this problem with QListBox? what i mean is cant you do the same thing with the QLineEdit.