• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ setStatusBar函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中setStatusBar函数的典型用法代码示例。如果您正苦于以下问题:C++ setStatusBar函数的具体用法?C++ setStatusBar怎么用?C++ setStatusBar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setStatusBar函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: setStatusBar

void KPCMCIAInfoPage::slotSuspendResume() {
    if (!(_card->status() & CARD_STATUS_BUSY))
      if (!(_card->status() & CARD_STATUS_SUSPEND)) {
         emit setStatusBar(i18n("Suspending card..."));
        _card->suspend();
      } else {
         emit setStatusBar(i18n("Resuming card..."));
        _card->resume();
      }
}
开发者ID:Fat-Zer,项目名称:tdeutils,代码行数:10,代码来源:kpcmciainfo.cpp


示例2: QStatusBar

void Ui::Ui_MainWindow::SBaction(bool checked){
	if(checked){
		statusbar = new QStatusBar(this);
		setStatusBar(statusbar);
		sboffset = 23;
		updateGeometries();
	} else{
		setStatusBar(0);
		sboffset = 0;
		updateGeometries();
	}
}
开发者ID:fhede,项目名称:bp-nfoview,代码行数:12,代码来源:bp-nfoview.cpp


示例3: makeUI

void
MainWindow::init()
{
	makeUI();
	createActions();
	createConnects();
	createToolbars();
	//setStatusBar(statusBar());
	#if 0
	QMainWindow *qm = new QMainWindow();
	qm = (QMainWindow *) stackedWidget->currentWidget();
	setStatusBar(qm->statusBar());
	#endif
	setStatusBar(((QMainWindow *) stackedWidget->currentWidget())->statusBar());
}
开发者ID:Sangil-Lee,项目名称:RefCode,代码行数:15,代码来源:MainWindow.cpp


示例4: QMainWindow

PmChart::PmChart() : QMainWindow(NULL)
{
    my.dialogsSetup = false;
    setIconSize(QSize(22, 22));

    setupUi(this);

    my.statusBar = new StatusBar;
    setStatusBar(my.statusBar);
    connect(my.statusBar->timeFrame(), SIGNAL(clicked()),
				this, SLOT(editSamples()));
    connect(my.statusBar->timeButton(), SIGNAL(clicked()),
				this, SLOT(optionsShowTimeControl()));

    my.timeAxisRightAlign = toolBar->height();
    toolBar->setAllowedAreas(Qt::RightToolBarArea | Qt::TopToolBarArea);
    connect(toolBar, SIGNAL(orientationChanged(Qt::Orientation)),
		this, SLOT(updateToolbarOrientation(Qt::Orientation)));
    updateToolbarLocation();
    setupEnabledActionsList();
    if (!globalSettings.initialToolbar && !outfile)
	toolBar->hide();

    toolbarAction->setChecked(true);
    my.toolbarHidden = !globalSettings.initialToolbar;
    my.consoleHidden = true;
    if (!pmDebug)
	consoleAction->setVisible(false);
    consoleAction->setChecked(false);

    if (outfile)
	QTimer::singleShot(0, this, SLOT(exportFile()));
    else
	QTimer::singleShot(PmChart::defaultTimeout(), this, SLOT(timeout()));
}
开发者ID:felipebetancur,项目名称:pcp,代码行数:35,代码来源:pmchart.cpp


示例5: QStatusBar

//------------------------------------------------------------------------------
void MainWindow::setupStatusBar()
{
    mStatusBar = new QStatusBar(this);
    mStatusBar->setObjectName(QString::fromUtf8("mStatusBar"));

    mProgressBar = new QProgressBar(this);
    mStatusBar->addWidget(mProgressBar);

    mProgressLabel = new QLabel(this);
    mStatusBar->addWidget(mProgressLabel, 1);

    mProgressLabel->setText("");
    mProgressLabel->setVisible(false);

    mProgressBar->setFixedWidth(200);
    mProgressBar->setMinimum(0);
    mProgressBar->setMaximum(100);
    mProgressBar->setVisible(false);

    mTotalEntriesLabel = new QLabel(this);
    mTotalEntriesLabel->setText(tr("Total Entries : "));
    mStatusBar->addWidget(mTotalEntriesLabel, 1);

    setStatusBar(mStatusBar);
}
开发者ID:xubingyue,项目名称:Ogitor,代码行数:26,代码来源:mainwindow.cpp


示例6: shop

mainwindow::mainwindow(essemu &sm, QWidget* parent): shop(sm) ,QMainWindow(parent) {
	tbl=0;
	setGeometry(150,100,705,400);
	setWindowTitle("GuitarShop");

	Menu= new QMenu("File",this);
	MenuT= new QMenu("Tabella",this);
	MenuS= new QMenu("Ricerca",this);
	menuBar()->addMenu(Menu);
	menuBar()->addMenu(MenuT);
	menuBar()->addMenu(MenuS);
	sttbar= new QStatusBar(this);
	setStatusBar(sttbar);

	//file
	New= new QAction("Nuovo",this);
	New->setShortcuts(QKeySequence::New);
	Close= new QAction("Chiudi",this);
	Close->setEnabled(false);
	Open= new QAction("Apri",this);
	Open->setShortcuts(QKeySequence::Open);
	Save= new QAction("Salva",this);
	Save->setShortcuts(QKeySequence::Save);
	Save->setEnabled(false);
	SaveAs= new QAction("Salva come...",this);
	SaveAs->setShortcuts(QKeySequence::SaveAs);
	SaveAs->setEnabled(false);
	Exit= new QAction("Exit",this);
	Exit->setShortcuts(QKeySequence::Close);
	Menu->addAction(New);
	Menu->addAction(Close);
	Menu->addAction(Open);
	Menu->addAction(Save);
	Menu->addAction(SaveAs);
	Menu->addAction(Exit);
	//tabella
	NRow= new QAction("Inserisci Chitarra",this);
	NRow->setEnabled(false);
	DRow= new QAction("Rimuovi Chitarra",this);
    DRow->setShortcut(QKeySequence::Delete);
	DRow->setEnabled(false);
	MenuT->addAction(NRow);
	MenuT->addAction(DRow);
	//ricerca
	Search= new QAction("Search",this);
	Search->setEnabled(false);
	CloseSearch= new QAction("Close Search", this);
	CloseSearch->setEnabled(false);
	MenuS->addAction(Search);
	MenuS->addAction(CloseSearch);
	
	connect(New,SIGNAL(triggered()),this,SLOT(newFile()));
	connect(Close,SIGNAL(triggered()),this,SLOT(closeFile()));
	connect(Open,SIGNAL(triggered()),this,SLOT(openFile()));
	connect(Save,SIGNAL(triggered()),this,SLOT(saveFile()));
	connect(SaveAs,SIGNAL(triggered()),this,SLOT(saveasFile()));
	connect(Exit,SIGNAL(triggered()),this,SLOT(close()));
    connect(Search,SIGNAL(triggered()),this,SLOT(activeSearch()));
    connect(CloseSearch,SIGNAL(triggered()),this,SLOT(closeSearch()));
}
开发者ID:andeliero92,项目名称:PaO,代码行数:60,代码来源:mainwindow.cpp


示例7: QMainWindow

//Public
B9Edit::B9Edit(QWidget *parent, Qt::WFlags flags, QString infile)
	: QMainWindow(parent, flags)
{
	ui.setupUi(this);
    setAcceptDrops(true);
	setStatusBar(0);
	ui.mainToolBar->setMovable(false);
	ui.mainToolBar->setMaximumHeight(24);
	ui.mainToolBar->addAction(ui.actionNew_Job);
	ui.mainToolBar->addAction(ui.actionOpen_Exsisting_Job_File);
	ui.mainToolBar->addAction(ui.actionSave_To_Job);
	ui.mainToolBar->addSeparator();
	ui.mainToolBar->addAction(ui.actionShow_Slice_Window);

    pAboutBox = new aboutbox(this);


	pEditView = new SliceEditView(this);
	pEditView->pCPJ = &cPJ;
	pEditView->pBuilder = this;
	dirtied = false;
	continueLoading = true;
    if(infile == "")
    {
        newJob();
    }
    else
    {
        openJob(infile);
    }
}
开发者ID:denisoft,项目名称:B9Creator,代码行数:32,代码来源:b9edit.cpp


示例8: showParameterStatistic

void MainWindow::doShowParameterStatistic()
{
    if ( gv_PS.count() > 0 )
        showParameterStatistic( gv_PS );

    setStatusBar( tr( "Ready" ), 2 );
}
开发者ID:rsieger,项目名称:PanPlot,代码行数:7,代码来源:showParameterStatistic.cpp


示例9: KStatusBar

void TopLevel::setupStatusBar()
{
  statusbar = new KStatusBar(this);
  statusbar->insertItem("", ID_GENERAL);
  statusbar->setInsertOrder(KStatusBar::LeftToRight);
  setStatusBar(statusbar);
}
开发者ID:kthxbyte,项目名称:KDE1-Linaro,代码行数:7,代码来源:toplevel.cpp


示例10: saveParameterStatistic

void MainWindow::doSaveParameterStatisticPDF()
{
    if ( gv_PS.count() > 0 )
        saveParameterStatistic( gsl_FilenameList.at( 0 ), gv_PS, _FORMATPDF_ );

    setStatusBar( tr( "Done" ), 2 );
}
开发者ID:rsieger,项目名称:PanPlot,代码行数:7,代码来源:showParameterStatistic.cpp


示例11: QMainWindow

MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent),
   m_toolBar(this),
   m_aboutDialog(this),
   m_helpBrowser(this),
   m_viewerModel(this),
   m_viewerView(this),
   m_undoStack(this),
   m_undoStackView(&m_undoStack, this),
   m_viewer(m_viewerModel, this),
   m_viewerSelectionModel(&m_viewerModel, this),
   m_logMessageDialog(0),
   m_preferencesBrowser(this),
   m_quiInputDialog(0),
   m_shaderDialog(0)
{
   setStatusBar(0);
   setWindowTitle("IQmol");
   setWindowModified(false);
   setAcceptDrops(false);
   setWindowIcon(QIcon(":/resources/icons/iqmol.png"));

   createMenus();
   createLayout();
   createConnections(); 

   m_undoStack.setUndoLimit(Preferences::UndoLimit());
   m_undoStackView.setEmptyLabel("History:");
   m_viewerView.setModel(&m_viewerModel);
   m_viewerView.setSelectionModel(&m_viewerSelectionModel);
   m_viewer.setActiveViewerMode(Viewer::BuildAtom);

   m_viewer.setDefaultSceneRadius();
   m_viewer.resetView();
}
开发者ID:bjnano,项目名称:IQmol,代码行数:34,代码来源:MainWindow.C


示例12: setObjectName

void FMainWindow::initUI()
{
    titleBar = FTitleBar::getInstace();

    setObjectName(QString("FMainWindow"));
    QDesktopWidget* desktopWidget = QApplication::desktop();
    setMaximumSize(desktopWidget->availableGeometry().size());
    readSettings();

    setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
	
	setWindowTitle(sql.strtitle);

    pstatusbar = new QStatusBar;
    pstatusbar->setFixedHeight(35);
	pstatusbar->setStyleSheet(QString("QStatusBar::item{border: 0px}"));


	QString currentdatetime = QDateTime::currentDateTime().toString("yyyy-MM-dd  hh:mm:ss");  
	QString strcurrentuser=QApplication::translate("ConnectDB", "\345\275\223\345\211\215\347\224\250\346\210\267", 0, QApplication::UnicodeUTF8);
	QString strtime =QApplication::translate("ConnectDB", "\347\231\273\345\275\225\346\227\266\351\227\264", 0, QApplication::UnicodeUTF8);
	strcurrentuser +=":"+sql.struser+"   ";
	strtime+=":"+currentdatetime;
	QString str=strcurrentuser+strtime;
    pstatusbar->showMessage(str);
	setStatusBar(pstatusbar);


    trayicon = new QSystemTrayIcon(QIcon(QString(":/skin/images/his.ico")), this);
    trayicon->setObjectName(QString("trayicon"));
    trayicon->setToolTip(QString(qApp->applicationName()));
    trayicon->show();
}
开发者ID:wangfeilong321,项目名称:his,代码行数:33,代码来源:fmainwindow.cpp


示例13: QMainWindow

// Create and initialize the UI.
FeaturesUI::FeaturesUI ( QWidget * parent ) : QMainWindow ( parent )
{
  doc = new FeaturesDoc ( this );
  QStatusBar * statusBar = new QStatusBar ( this );
  setStatusBar ( statusBar );
  QObject::connect ( doc, SIGNAL ( alert ( QString ) ),
                     statusBar, SLOT ( showMessage ( const QString & ) ) );
  // Create the main window.
  setFixedSize ( minWidth, minHeight );
  setWindowTitle ( "Features" );

  // Create the menu bar.
  QMenuBar * menuBar = new QMenuBar ( this );

  menuBar->addMenu ( createFileMenu ( menuBar ) );
  menuBar->addMenu ( createImageMenu ( menuBar ) );
  menuBar->addMenu ( createOptionsMenu ( menuBar ) );
  menuBar->addMenu ( createHelpMenu ( menuBar ) );

  setMenuBar ( menuBar );

  QWidget * widget = new QWidget ( this );
  QHBoxLayout * layout = new QHBoxLayout ( widget );

  // Create the subwindows for viewing the query and result images.
  queryView = new ImageView ( this );
  layout->addWidget ( queryView );

  resultView = new ImageView ( this );
  layout->addWidget ( resultView );

  widget->setLayout ( layout );

  setCentralWidget ( widget );
}
开发者ID:yosinski,项目名称:Cornell-CS4670-2010,代码行数:36,代码来源:FeaturesUI.cpp


示例14: setupUi

UltraGridMainWindow::UltraGridMainWindow(QWidget *parent)
{
    setupUi(this); // this sets up GUI
    started = false;

    history = settings.getHistory();
    completer = new QCompleter(QStringList::fromSet(history), this);

    address->setCompleter(completer);
    address->completer()->setCompletionMode(QCompleter::PopupCompletion);

    // signals/slots
    connect( pushButton_start, SIGNAL( clicked() ), this, SLOT( doStart() ) );
    connect( pushButton_advanced, SIGNAL( clicked() ), this, SLOT( doAdvanced() ) );
    connect( pushButton_terminal, SIGNAL( clicked() ), this, SLOT( doTerminal() ) );
    connect( actionAbout, SIGNAL( triggered() ), this, SLOT( about() ) );
    connect( &process, SIGNAL( finished( int, QProcess::ExitStatus ) ),
             this, SLOT( UGHasFinished( int, QProcess::ExitStatus ) ) );

    connect( &process, SIGNAL( readyReadStandardOutput () ),
             this, SLOT( outputAvailable ()) );
    connect( &process, SIGNAL( readyReadStandardError () ),
             this, SLOT( outputAvailable ()) );

    setStatusBar(&statusBar);

    terminal = new Terminal(this);
}
开发者ID:MattHung,项目名称:sage-graphics,代码行数:28,代码来源:ultragrid.cpp


示例15: dialog

void MainWindow::exportBitmap()
{
  QString filter = "Images (";
  QList<QByteArray> formats = QImageWriter::supportedImageFormats();
  for(QList<QByteArray>::iterator i = formats.begin(); i != formats.end(); i++)
  {
    if(i != formats.begin())
    {
      filter += " ";
    }
    filter += "*." + *i;
  }
  filter += ")";

  QString filename = m_fileDialog.getSaveFileName("Save picture", filter);
  if (filename.isNull())
  {
    return;
  }

  SavePictureDialog dialog(this, m_ltsCanvas, filename);
  connect(&dialog, SIGNAL(statusMessage(QString)), this, SLOT(setStatusBar(QString)));
  dialog.exec();
  clearStatusBar();
}
开发者ID:gijskant,项目名称:mcrl2-pmc,代码行数:25,代码来源:mainwindow.cpp


示例16: QMainWindow

MainWindow::MainWindow(quint32 id, QWidget *parent) :
    QMainWindow(parent)
{
    m_id = id;
    m_hometab = NULL;

    setWindowTitle(titleString);
    setMinimumSize(600, 500);
    setWindowIcon(QIcon(":/icons/icon.png"));
    setAttribute(Qt::WA_DeleteOnClose);
    loadWindowParams();

    QApplication::setFont(Utils::getFontFromString(sConfig.get(CFG_STRING_APP_FONT)));

    setStatusBar(new QStatusBar(this));

    m_tabView = new TabView(this);
    connect(m_tabView, SIGNAL(statusBarMsg(QString,int)), statusBar(), SLOT(showMessage(QString,int)));
    connect(m_tabView, SIGNAL(closeWindow()),                          SLOT(close()));
    connect(m_tabView, SIGNAL(openHomeTab()),                          SLOT(openHomeTab()));
    connect(m_tabView, SIGNAL(closeHomeTab()),                         SLOT(closeHomeTab()));
    connect(m_tabView, SIGNAL(changeWindowTitle(QString)),             SLOT(changeWindowTitle(QString)));

    setCentralWidget(m_tabView);
    openHomeTab();
}
开发者ID:dimitarm1,项目名称:Lorris,代码行数:26,代码来源:mainwindow.cpp


示例17: CREATE_STATUS_BAR_LABEL

void MENU_KERNEL::ADD_STATUS_BAR_INFO()
{
    QStatusBar * status_bar = new QStatusBar;
    status_bar->setAttribute ( Qt::WA_DeleteOnClose );

    QString values_font = "Ouhod";
    status_bar->setStyleSheet ( "QStatusBar { background-color:rgb(240,240,240); } ; " );
    status_bar->setSizePolicy ( QSizePolicy::Expanding,QSizePolicy::Fixed );

    QLabel * label_kullanici_info    = CREATE_STATUS_BAR_LABEL();
    label_kullanici_info->setText ( QString ( tr("User  :  <span style=\"font-family:'%1'; \">%2 - %3</span>")).arg(values_font).arg(KULLANICI_KODU()).arg(KULLANICI_ADI()));

    QLabel * label_firma_info        = CREATE_STATUS_BAR_LABEL();
    label_firma_info->setText ( QString ( tr("Company  :  <span style=\"font-family:'%1'; \">%2 - %3</span>") ).arg(values_font).arg ( VERITABANI_ISMI() ).arg ( VERITABANI_TANIMI() ) );

    QLabel * label_bilgisayar_info   = CREATE_STATUS_BAR_LABEL();
    label_bilgisayar_info->setText ( QString ( tr("Computer  :  <span style=\"font-family:'%1'; \">%2 - %3</span>") ).arg(values_font).arg(BILGISAYAR_KODU()).arg(BILGISAYAR_ADI() ) );

    QLabel * label_program_info      = CREATE_STATUS_BAR_LABEL();
    label_program_info->setText ( QString ( "<span style=\"font-family:'%1'; \">%2 %3</span>" ).arg(values_font).arg(ADAK_PROGRAM_SHORTNAME(ADAK_DISPLAY_ID())).arg(ADAK_PROGRAM_VERSION(ADAK_DISPLAY_ID())));

    status_bar->insertPermanentWidget ( 0, label_firma_info      ,3 );
    status_bar->insertPermanentWidget ( 1, label_kullanici_info  ,3 );
    status_bar->insertPermanentWidget ( 2, label_bilgisayar_info ,3 );
    status_bar->insertPermanentWidget ( 3, label_program_info    ,0 );

    setStatusBar ( status_bar );
}
开发者ID:adakteknoloji,项目名称:FRAMEWORK,代码行数:28,代码来源:menu_kernel.cpp


示例18: printDialog

void MainWindow::doPrintParameterStatistic()
{
    if ( gv_PS.count() > 0 )
    {
        QTextDocument   textDocu;

        QPrinter        printer;
        QPrintDialog    printDialog( &printer, this );

        printer.setOrientation( QPrinter::Landscape );

        if ( printDialog.exec() == QDialog::Accepted )
        {
            QFileInfo   fi( gsl_FilenameList.at( 0 ) );
            QFont       textFont = QFont( gf_HeaderTextFont.family(), 10, 0, false );

            printer.setOutputFileName( tr( "" ) );
            textDocu.setHtml( createParameterStatisticOutputText( fi.fileName(), gv_PS ) );
            textDocu.setDefaultFont( textFont );
            textDocu.print( &printer );
        }

        update();
    }

    setStatusBar( tr( "Done" ), 2 );
}
开发者ID:rsieger,项目名称:PanPlot,代码行数:27,代码来源:showParameterStatistic.cpp


示例19: QMainWindow

ChatWindow::ChatWindow(QString jid, QXmppClient *client, QWidget *parent) :
    QMainWindow(parent),
    m_jid(jid),
    m_client(client),
    m_selfState(QXmppMessage::Active),
    m_pausedTimer(new QTimer),
    m_inactiveTimer(new QTimer),
    m_goneTimer(new QTimer),
    m_statusBar(new QStatusBar),
    m_sendButton(new QPushButton),
    m_sendTip(new QLabel)
{
    ui.setupUi(this);

    setWindowTitle(QString(tr("Contact: %1")).arg(m_jid));

    m_editor = new MessageEdit();
    QVBoxLayout *layout = new QVBoxLayout();
    layout->addWidget(m_editor);
    layout->setMargin(0);
    ui.editorWarpwidget->setLayout(layout);
    m_editor->setFocus();

    m_sendButton->setText(tr("Send"));
    m_sendButton->setFixedHeight(m_statusBar->sizeHint().height());
    m_statusBar->addPermanentWidget(m_sendTip);
    m_statusBar->addPermanentWidget(m_sendButton);
    m_statusBar->setSizeGripEnabled(false);
    setStatusBar(m_statusBar);

    // init ui
    QXmppRoster::QXmppRosterEntry entry = m_client->getRoster().getRosterEntry(jidToBareJid(m_jid));
    ui.name->setText(entry.name());
    ui.jid->setText(m_jid);
    if (m_client->getRoster().getResources(jidToBareJid(m_jid)).isEmpty())
        ui.photo->setPixmap(QPixmap(":/images/user-identity-grey-100.png"));
    else
        ui.photo->setPixmap(QPixmap(":/images/user-identity-100.png"));

    connect(m_sendButton, SIGNAL(clicked()),
            this, SLOT(sendMessage()));
    connect(m_editor, SIGNAL(textChanged()),
            this, SLOT(sendComposing()));
    connect(m_pausedTimer, SIGNAL(timeout()),
            this, SLOT(pausedTimeout()));
    connect(m_inactiveTimer, SIGNAL(timeout()),
            this, SLOT(inactiveTimeout()));
    connect(m_goneTimer, SIGNAL(timeout()),
            this, SLOT(goneTimeout()));
    connect(ui.detailButton, SIGNAL(clicked()),
            this, SLOT(openContactInfoDialog()) );

    // action
    connect(ui.actionSendFile, SIGNAL(triggered()),
            this, SLOT(sendFileSlot()) );

    setAttribute(Qt::WA_QuitOnClose, false);
    setAttribute(Qt::WA_DeleteOnClose, true);
}
开发者ID:Y2Z,项目名称:qtalk,代码行数:59,代码来源:ChatWindow.cpp


示例20: EditViewBase

ListEditView::ListEditView(RosegardenDocument *doc,
                           std::vector<Segment *> segments,
                           unsigned int cols,
                           QWidget *parent) :
    EditViewBase(doc, segments, parent),
    m_viewNumber( -1),
    m_viewLocalPropertyPrefix(makeViewLocalPropertyPrefix()),
    m_mainDockWidget(0),
    m_centralFrame(0),
    m_grid(0),
    m_mainCol(cols - 1),
    m_compositionRefreshStatusId(doc->getComposition().getNewRefreshStatusId()),
    m_needUpdate(false),
    m_pendingPaintEvent(0),
    m_havePendingPaintEvent(false),
    m_inCtor(true),
    m_timeSigNotifier(new EditViewTimeSigNotifier(doc))
{
    QPixmap dummyPixmap; // any icon will do
	
	
	/*
	m_mainDockWidget = new QDockWidget( "Rosegarden EditView DockWidget", this );
	m_mainDockWidget->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
	m_mainDockWidget->setFeatures( QDockWidget::AllDockWidgetFeatures );
	
	addDockWidget( Qt::LeftDockWidgetArea, m_mainDockWidget, Qt::Horizontal );
	*/
	m_mainDockWidget = 0;
	
	setStatusBar( new QStatusBar(this) );
/*	
	m_toolBar = new QToolBar( "Tool Bar", this );
	addToolBar( Qt::TopToolBarArea, m_toolBar );
	m_toolBar->setMinimumHeight( 16 );
	m_toolBar->setMinimumWidth( 40 );
*/	
    m_centralFrame = new QFrame(this);		//m_mainDockWidget);
    m_centralFrame->setObjectName("centralframe");
	m_centralFrame->setMinimumSize( 500, 300 );
	m_centralFrame->setMaximumSize( 2200, 1400 );
	
	// 
	m_grid = new QGridLayout(m_centralFrame);
	m_centralFrame->setLayout( m_grid );
	
	// Note: We add Widget bottom-right, so the grid gets the propper col,row count
	// NbLayoutRows, cols
	//m_grid->addWidget( new QWidget(this), NbLayoutRows, cols);
	
	
	//this->setLayout( new QVBoxLayout(this) );
	//this->layout()->addWidget( m_centralFrame );
	setCentralWidget( m_centralFrame );
	
//    m_mainDockWidget->setWidget(m_centralFrame);

    initSegmentRefreshStatusIds();
}
开发者ID:EQ4,项目名称:RosegardenW,代码行数:59,代码来源:ListEditView.cpp



注:本文中的setStatusBar函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setStatusTip函数代码示例发布时间:2022-05-30
下一篇:
C++ setState函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap