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