qtgui
QDockWidgets, set nested state from UIDesigner
I created a QtGui with the GuiCreator and added some DockWidgets. I can only allow the nested state from the property editor but how can I set it active for the DockWidgets?[详细]
2023-03-15 13:35 分类:问答How to know the file's type to save, using QFileDialog
About pyQt4 I prefer to use the static method for the getSaveFilename in the QFileDialog so that the user sees the Windows/Mac native dialog.[详细]
2023-03-11 18:48 分类:问答QPolygon: How do I obtain the edges of the polygon
I am using QPolygon class. Is there any method which gives the 开发者_开发知识库edges of the respective polygon?If by edges you mean the bounding box (smallest rectangle that encloses the polygon) the[详细]
2023-03-01 14:45 分类:问答How to customize QTableWidget through stylesheet?
I\'m try开发者_开发问答ing to customize a QTableWidget through stylesheet and I\'m only limited to the items descibed here.[详细]
2023-02-19 05:30 分类:问答How to make selection on QGraphicsScene?
I\'m writing a diagram editor in Qt with Graphics View Framework. Currently I\'m just trying to create a simple Node (QGraphicsItem) on GraphScene (QGraphicsScene). I created a Canvas (QGraphicsView)[详细]
2023-02-12 04:17 分类:问答Qt - How to override a widget?
I\'ve created a form using the Qt designer which includes a QToolButton. I can turn it using ui->favouriteToolButton.[详细]
2023-02-02 14:53 分类:问答When does QVBoxLayout recalculate the layout?
I have a window with a a QVBoxLayout in it. The layout has some child widgets (defined in a .ui file). In my window class\' constructor, I create and assign a menu to the layout. The position of the w[详细]
2023-01-29 18:18 分类:问答QWizardPages to keep their own minimum sizes
I\'m working with Qt (version 4.6 on Windows XP 32-bit and compiling in Qt Creator 2.0.0) and trying to get a QWizard to work out.[详细]
2023-01-11 16:11 分类:问答Qt: Detect Double-Click with Modkey (Shift, CTRL, etc.)
How can I detect whether a double click on a QWidget (QStatusBar, in my case) occured while a modifier key was held down?[详细]
2022-12-20 12:24 分类:问答How to create artificial nodes in QAbstractItemModel for QTreeView
my question is about Qt and its QAbstractItemModel. I have a map of strings and doubles (std::map<stringclass, double>)which I would like to present in a Qt widget. While I could use QTableView[详细]
2022-12-19 06:15 分类:问答