我QStandardItemModel在PySide中有一个,想删除某些行上的文本(这是一个待办事项列表应用程序,当任务完成时,我想删除文本)。鉴于QStandardItem显示的很好,根据文档,我尝试使用以下内容删除文本:
QStandardItem.setFont(QtGui.QFont.setStrikeOut(True))
Run Code Online (Sandbox Code Playgroud)
但是文本没有改变,并且出现错误:
TypeError: descriptor 'setStrikeOut' requires a 'PySide.QtGui.QFont' object but received a 'bool'
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 react-pdf 中使用斜体样式。
一切正常,直到我使用font-style: italic;.
在 react-pdf 中是否有另一种方式将文本样式设置为斜体?
const Italic = styled.Text`
font-size: 12px;
lineheight: 20px;
text-align: left;
font-family: "Roboto Condensed";
letter-spacing: 0.5px;
font-style: italic;//problem is with this line
font-weight:400;
`;
Run Code Online (Sandbox Code Playgroud)
它给了我错误:
未捕获(承诺)错误:无法解析未定义的字体,fontWeight 400
我必须将文本框和一些文本对齐,大约30度,如下所示: 旋转文本http://c3.ort.org.il/Apps/Public/getfile.aspx?inline=yes&f=files/ba3c28fc-8c3e- 46d9-b4f3-effda4c7e27b/92512b48-c566-4a05-a955-39003e9c4b5d/3fd286a7-0a1c-4db6-9308-4fe563f5662b/7b39f5d1-0070-4f8a-a6b1-a588173a4dde.JPG
我希望它至少在IE和FF中工作.
我在网上找到的所有东西都涉及图像旋转.
任何人?
标题说明了一切.我想更改不可编辑的提示文本的颜色combobox,以便文本具有与可编辑的提示文本相同的颜色combobox.在我的CSS文件我试图用-fx-prompt-text-fill的.combo-box,.combo-box-base,.combo-box-base .text-field和.combo-box-base .text-input,但毫无效果.
我必须使用什么样的风格?
text-styling ×5
css ×3
cocoa-touch ×1
combobox ×1
html ×1
ios ×1
javafx-8 ×1
pyqt ×1
pyside ×1
qt ×1
react-pdf ×1
reactjs ×1
stylesheet ×1
uilabel ×1