Elide text in webkit
-
It is possible to configure the "QWebView" to work with "Elide" disabled (equivalent to Qt::ElideNone)?
The "Elide" graphic texts being compressed (elieded) to fit inside the select.
Example:
!http://i.stack.imgur.com/PpiBO.jpg(elide text)!I wish the entire text to be displayed when clicked on comobox (selectbox). Is it possible?
Thanks.
-
I think it may be the way the styleSheet:
@QComboBox QAbstractItemView {
...
}@I just do not know which property to use styleSheet disable "elited".
Maybe something like this:
@QComboBox QAbstractItemView {
elided: none;
...or...
elide: none;
}@Anyone know a link with all properties stylesheets used in QT (I searched but did not find)?
I tried white-space: normal; that seems the most logical, but does not work with QAbstractItemView, will be the selector is another?
-
I found these links. Hope they are useful to you.
"http://qt-project.org/doc/qt-4.7/stylesheet-reference.html":http://qt-project.org/doc/qt-4.7/stylesheet-reference.html
"http://qt-project.org/doc/qt-4.8/stylesheet-customizing.html":http://qt-project.org/doc/qt-4.8/stylesheet-customizing.html
"http://qt-project.org/doc/qt-4.7/stylesheet.html":http://qt-project.org/doc/qt-4.7/stylesheet.html -
It is not QWebView specific, but QComboBox. Look here, I have had the same problem: http://qt-project.org/forums/viewthread/25723/
The simplest way to fix it, was to patch Qts qcombobox.cpp and replace ElideMiddle to ElideNone.
-
@KA51O Thanks, but I already knew these links, I wanted to know is what should I use the selector and CSS property?
@AcerExtensa I know that the problem is in QComboBox (so much that I asked about styleSheet QT), anyway thanks, I just do not know where this file is "Qcombobox.cpp". Could you help me? Thanks. (Sorry that I'm new to "QT")
-
Are you using Qt5? Then it is in qtbase/src/widgets/widgets/qcombobox.cpp
in Qt4 it is in src/gui/widgets/qcombobox.cpp -
@AcerExtensa I searched the entire "qt folder" and not found.
My settings:
- Qt5.0.2+Mingw
- Windows 7 x64
- Folder: C:\Qt\Qt5.0.2
- Tools: C:\Qt\Qt5.0.2\Tools
- Mingw qt: C:\Qt\Qt5.0.2\5.0.2\mingw47_32
I am very grateful for your help.
-
You need to have Qt sources and not the SDK. After you have changed ElideMode in your sources you will need to recompile Qt.
Take a look here http://qt-project.org/wiki/Get_The_Source or here http://qt-project.org/wiki/Building_Qt_5_from_Git
-
You will need the source package and rebuild Qt yourself
-
Worked this way:
@QComboBox QAbstractItemView {
qproperty-textElideMode: ElideNone
}@I did not need to compile. But the problem is that the width does not follow. How could I do this?
Thanks.