乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      利用Accepted信號判斷enterBtn是否被按下

       遇見云 2010-08-19
      【摘要】
            這篇文檔主要是在qtcreator編程時碰到這條語句   if(my1.exec()==QDialog::Accepted) ,程序在D:\Qt\2010.04\qt\nGui里面;
      【思路】
      myl這個對象是在main.cpp文件中定義的:myDlg myl; //建立自己新建的類的對象myl;
       
      Edit->Find/Replace->Adavanced  Find ->current Project   在里面進行搜索myDlg;
      在第三行的D:\Qt\2010.04\qt\nGui\mydlg.h下的第10行:class myDlg : public QDialog ;這表明這個myDlg是繼承QDialog這個類的;所有QDialog這個類的函數(shù)myDlg都可以拿來用;
      welcome ->edit--->design--->debug---->projects--->help  進入help,在look for 輸入QDialog;在下面找到這個函數(shù)exec();

      int QDialog::exec ()   [slot] //這是個槽,本質(zhì)上就是一普通的成員函數(shù)

      Shows the dialog as a modal dialog, blocking until the user closes it. The function returns a DialogCode result.

      If the dialog is application modal, users cannot interact with any other window in the same application until they close the dialog.
      If the dialog is window modal, only interaction with the parent window is blocked while the dialog is open. By default, the dialog is application modal.
      中文翻譯:如果這個對話框是程序模式,用戶不能在同一個應用程序里訪問其它窗口,除非我們把這個對話框關閉;
                        如果這個對話框是窗口模式,只要這個對話框是處于打開狀態(tài)的,它就不能和父窗口進行通信;
      PS:modal dialog包括window modal,application modal;

      void QDialog::accepted ()   [signal]//這是個信號,本質(zhì)上也就是成員函數(shù)

      This signal is emitted when the dialog has been accepted either by the user or by calling accept() or done() with the QDialog::Accepted argument.

      Note that this signal is not emitted when hiding the dialog with hide() or setVisible(false). This includes deleting the dialog while it is visible.

       
       
       

        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多