QToolButton* ProcessingManager::getButton(constQString& icon,constQString& text,constQString& tooltip) { QToolButton* button =newQToolButton(); button->setIcon(ApplicationData::icon(icon)); button->setText(text); button->setIconSize(QSize(32,32)); button->setFixedHeight(60); button->set...
tb->setIcon( KIcon( QLatin1String("edit-find-mail") ) ); tb->setText( i18n("Open Full Search") ); tb->setToolTip( tb->text() ); g->addWidget( tb,0,2); connect( tb, SIGNAL( clicked() ),this, SIGNAL( fullSearchRequest() ) ); d->mView =newView(this); d->mView->set...
因此,你基本上有正确的想法,但棘手的部分是计算出所需的大小。不幸的是,QToolBar布局完全是私有的,...
textView->setText(tr("If you click \"Start Reset\", you accept close browser (loose all opened tabs) and delete :<ul><li>Account</li><li>Color background</li><li>Home Page</li><li>Elements of Interface</li><li>Account</li></ul>Do you continue ?")); textView->setSizePolicy(...
self.move_element_down_tb.setIcon(QIcon(I('arrow-down.png'))) self.move_element_down_tb.clicked.connect(self.move_row_down) vbl.addWidget(self.move_element_down_tb) self.layout.addLayout(vbl) 开发者ID:kbw1,项目名称:calibre-marvin-manager,代码行数:32,代码来源:appearance.py ...
开发者ID:satishgoda,项目名称:DPS_PIPELINE,代码行数:103,xfilepathedit.py 注:本文中的PyQt4.QtGui.QToolButton.icon方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。
filterDelOne->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); QToolButton *filterDelAll =newQToolButton(); filterDelAll->setObjectName("filterDelAll"); filterDelAll->setDefaultAction(aClearFilterAll); filterDelAll->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); ...
self.upButton =QToolButton(icon = icons.get("go-up")) self.downButton =QToolButton(icon = icons.get("go-down")) self.partSettings = QStackedWidget() w = QWidget() self.addWidget(w) layout = QVBoxLayout(spacing=0) w.setLayout(layout) ...
button.setToolButtonStyle(Qt.ToolButtonTextUnderIcon) button.setDefaultAction(action) action.triggered.connect(self.close) self.actionsLayout.addWidget(button) 开发者ID:mdouchin,项目名称:Roam,代码行数:10,代码来源:popupdialogs.py 示例6: addAction ...
tb->setIconSize(QSize(preferences.iconWidth, preferences.iconHeight)); QToolButton* b =newQToolButton(this); QAction* a = getAction("hraster"); a->setCheckable(true); b->setDefaultAction(a); b->setContextMenuPolicy(Qt::ActionsContextMenu); ...