qwidget
QT hangs my toolbar and its buttons
I\'ve created 2 classes, each: has QWidget as a parent has Q_OBJECT macros inits some actions, creates menubar and toolbar, and connects actions to them[详细]
2023-03-19 08:41 分类:问答Creating a window in Qt outside of main()?
Is it possible to make a window in Qt outside of the main() function like it\'s done in the tutorials? What\'s wrong with they way I did it here? There are no errors when I try to compile, but the win[详细]
2023-03-18 16:53 分类:问答Receive events when QCustomContextMenu is open
I have an issue capturing the key and mouse events. I have a class which inherits QGLWidget. I invoke a context menu QCustomContextMenu by setting the context menu policy of the widget. As the context[详细]
2023-03-16 04:26 分类:问答Render QWidget in paint() method of QWidgetDelegate for a QListView
i\'m having difficulties implementing custom widget rendering in a QListView. I currently have a QListView displaying my custom model called PlayQueue based on QAbstractListModel.[详细]
2023-03-14 17:55 分类:问答How would you access a widget from a function in another file in Qt?
I\'m developing a project, and I first began making it without GUI, but now I\'m porting it to Qt, but I have a problem.[详细]
2023-03-13 12:43 分类:问答Qt4: Placing QMainWindow instance inside other QWidget/QMainWindow
I\'d like to place QMainWindow instance inside another QWidget (for example centralWidget of another QMainWindow).[详细]
2023-03-13 08:44 分类:问答qwidget.render drawing with offset in QStyledItemDelegate
I\'m trying to create a delegate to draw custom widgets as elements in a listview on icon mode. I have it more or less working but I can\'t get the widgets to draw in the right place, it seems they ar[详细]
2023-03-12 10:56 分类:问答Qt: Can child objects be composed in their parent object?
In Qt, can I embed child widgets in their parent via composition, or do I have to create them with new?[详细]
2023-03-10 07:38 分类:问答How to pass data from one form to another in Qt?
How can I pass data from one form to another in Qt? I have created a QWidgetProgect -> QtGuiApplication, I have two forms currently. Now I want to pass data from one form to another.[详细]
2023-03-09 13:56 分类:问答QWidget *parent as an argument in the user defined class's constructor
In my previous thread, people here told me, that every widget has a parent which helps in cases of deletion, i.e. when the parent gets deleted, the child gets automatically thrown out to /dev/null.[详细]
2023-03-05 00:09 分类:问答