qwidget

    1熱度

    2回答

    我需要什麼才能在QWidget派生類中調用showEvent()? ConfigMenuForm.h //simplified the code of the class declaration class ConfigMenuForm : public QWidget { Q_OBJECT public: explicit ConfigMenuForm(QWidget

    0熱度

    1回答

    ui->setupUi(this); setWindowState(Qt::WindowMaximized);//Qt::WindowFullScreen; QWidget *pStateInfosBar = new StateInfosBar(this); //pStateInfosBar->show(); QRect rcSibWannaGeometry(QApplication::

    1熱度

    2回答

    我爲我的應用程序創建了氣球蒙件。問題是小部件的尖端是鋸齒狀的,所以我做錯了什麼? Jagged tip void BalloonWidget::paintEvent(QPaintEvent *) { QVector<QPointF> vertices; vertices << QPointF(0, 0) << QPointF(width(), 0)

    0熱度

    1回答

    我是PyQt的新手。我在QtDeveloper中設計了一個有三個控件的表單。一個按鈕,一個組合框和一行編輯。我的UI格式中的行編輯小部件的名稱是myLineEdit。我想知道哪個Qwidget獲得焦點(QLineEdit或QComboBox)。我執行從互聯網上獲得的代碼。代碼運行時,會創建一個單獨的行編輯,並且工作正常。但是我想將focusInEvent賦給以.ui形式創建的myLineEdit小

    1熱度

    1回答

    我使用python3和PyQt4的,我想一些代碼每次運行時我QMainWindow是resized.I想這樣的事情 self.window.resized.connect(self.resize) 但resized沒有內置函數或方法。 任何人都可以幫忙。

    0熱度

    1回答

    對不起,我的英文。我需要執行QWidget的順序。我有一堆對象QWidget。 而且我需要按照它們出現在堆棧中的順序放置窗口。 例如: 堆棧:window1 -> window2 -> window3 從這個例子window2始終關閉window3,但反過來,關閉window1 typedef std::shared_ptr<Window> window_ptr; std::stack<wind

    0熱度

    1回答

    對不起,我的英文。我需要執行QWidget的順序。我有一堆對象QWidget。我需要按照它們出現在堆棧中的順序放置窗口。 例如: 堆棧:window1 - >window2 - >window3 從這個例子window2始終關閉window3,但反過來,關閉window1。 Qt中是否有這樣的功能?我不限於QWidget。也許不知何故,你可以指定\ Windows優先順序? QStackedWid

    1熱度

    2回答

    我有兩個類: typedef std::shared_ptr<AdaptedWidget> window_ptr; class WindowManager { public: ... private: std::stack<window_ptr> m_windowsStack; } 和 class AdaptedWidget: public QWidget {

    0熱度

    1回答

    我試圖動態添加更多的字段來選擇我的應用程序中的多個路徑。 Unfortunaley我無法擺脫的重疊,有些圖標有: 我將它們添加下面的代碼: void SettingsDialog::addPathEdit(QString dir) { if (amountPaths > maxAmountPaths) { showError(tr("Cannot add more than

    0熱度

    1回答

    我已經在pyqt中創建了2個新窗口小部件/窗口,從我的主窗口創建。現在我想在mainwindow類中訪問我的新方法。我怎樣才能做到這一點? 這裏是我的代碼: from UI_NewProject import Ui_widget from UI_OpenNew import Ui_Form # Main Class class MainClass(QtGui.QMainWindow, UI