qtpropertybrowser height of a single line changeable? - qt

I'm working with qtpropertybrowser right now and I want to expend this with a new ability. When I click on the editor, it shows me a QLabel and a QToolButton, with the button I can choose a imagefile, the filename will be shown on the QLabel. When I left editor, it shows me the image. I wrote my own manager and editorfactory, all is working. But it shows me the image only in size of an icon ( I used the valueIcon methode for this). Is there a way to change the height of the line so the image shown is bigger?

Related

Can some one help me add a CSS code that will move the text on a portfolio box to the bottom of the box and display it permanently

I'm trying to move the text to the bottom of this image ( it only shows the text when your hover)
Currently, it looks like this
On my website
https://wtxnews.co.uk/
The portfolio widget on WTXNews.co.uk
And ideally, I want it to look like - so the text you see can be at the bottom of that picture and always show
At the moment I am using two blog posts and moving the text upwards to do this, like this image
enter image description here
Thank you in advance
are the two options
You can do both with section and column editing
If image widget -> text widget -> post info widget
In the second option, simply make a bottom margin of -130 in the widget of the image
enter image description here
enter image description here

displaying icon image inside content property in IDE

the picture of code, in "content" property, it's value is a shape!
,
as you see in above image, specific part of my code!
I have style sheet in a project (that has been written before by another) that it have some css codes, and inside that, like bellow, have a property that, inside its value, it shows icon image!
i cant understand that, how inserted/created that!
my code:
.o-icon--close:before {
content: "";
}
my problem:
how he/she has written/created that icon shape inside CONTENT property.
it isn't a copy/paste an icon shape.
it isn't a text code!
as here isn't IDE, it shows a vertical rectangle, but in IDE it is shape of icon itself! like a music sign or what ever.
i know that, for CONTENT value, we can use fontawesome codes or other texts, but i can't understand how insert icon itself as a shape!

Issues with using CKEDITOR built-in templates

I am trying to use the default templates available with CKEDITOR.So I choose the one where an image and text can be placed side by side i.e. the image is occupying a certain part of the editor and the text the remaining part(but on the same horizontal level.I hope you get my point).But when I paste an image into the image area(provided in the template) , the text automatically shifts itself towards the bottom of the image(i.e. now image and text are not on the same level anymore). This happens no matter whether the size of the area provided for the image is bigger or smaller than the image.
Can any one say why this is happening and how to solve it.
You can change the Image Alignment To get the text in the same horizontal level
Image Properties -> Image Info -> Alignment -> Left | Right

Qlabel with image as the background overlaps other Qlabels

I have a Qlabel with image as rich text and some other Qlabels on top of that as in the picture:
although I sent the Qlabel with image to back but when I run they appear as follows:
is there anyway to fix this?
Make the text labels children of the label containing the fade. Also I can not see any layouts. Did you use layouts? You could also put the fade on the widget by implementing its paintEvent(). All other widgets will be displayed on top of that.
Try right clicking the image label and clicking the send-to-back option. That might work. That should send the QLabel behind the other elements even though they appear as though they are already in front.

QPushButton text fit to button in Qt

I am trying to make a QPushbutton that will increase in size to fit the text platform independently.
The text can be very long and I need the button to size itself so that all the text can be visible.
For example: I have a button with text "Restore defaults" , it is visible in win 7 . When i run this in mac os , only a part of the text ("tore defaults") is displayed.
Could anyone tell me how to solve this problem, to make all the text appear on the button.
QPushButton should already do that by default. Check your form in Qt Creator and see if "Maximum Size" is set to something other than the default. If so, set both width and height to 16777215 (or click on the small red arrow next to the property).
If you are manually setting the size in code, you can use the sizeHint property to get the right dimensions:
button->resize(button->sizeHint().width(), button->sizeHint().height());

Resources