Skip to main content

All Questions

Tagged with
0 votes
1 answer
65 views

Pyplot (matplotlib) plot in QWidget on dialog page in Python

I have an application that has worked for over a year. I added a new section. This section is opens a dialog upon pressing a button. In this dialog, I put a bland QWidget. I want to plot using ...
JSD's user avatar
  • 11
0 votes
0 answers
74 views

How to stylize custom Qt widgets globally?

I have custom widgets which inherit QWidget. I'm trying to use the palette, style, and font of the widgets as much as possible, and implement QWidget::changeEvent(), to keep their look consistent with ...
eepp's user avatar
  • 7,481
0 votes
1 answer
82 views

How to make custom QWidget receive all key press events, even shortcuts of global actions?

In Qt 5, assume the following custom widget: class QMeow final : public QWidget { public: explicit QMeow() { this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); ...
eepp's user avatar
  • 7,481
0 votes
1 answer
76 views

How to switch between two QGraphicsView inside a QWidget

I have two different views to display inside a QWidget window. Each view has a separate QGraphicsScene. I want to toggle between the two views on button click. This is my current implementation: ...
stackUnderflow's user avatar
0 votes
0 answers
82 views

The problem of binding a custom widget frame to the edges of the screen (Qt C++)

The problem is that my application has a custom frame, i.e. the standard frame is disabled using (Qt::FramelessWindowHint), and my problem is that the standard frame has the ability to snap to the ...
sqb's user avatar
  • 1
0 votes
0 answers
42 views

How can I trim a widget?

I need to trim a QWidget. I need it to be sliced as if a mask were applied and part of it be invisible. How can I do that?
Mykola Tetiuk's user avatar
0 votes
1 answer
150 views

Why is my QStyledItemDelegate not visible?

I'm trying to create a custom item delegate for a list of objects, but when I run my app the list view is blank. I know my model is populated, and it displays as expected with the standard default ...
Peter Hoff's user avatar
0 votes
1 answer
912 views

Qt : Widgets must be created in the GUI thread

I am facing this issue which crashes my Qt-based app at seemingly random times after running for a while (a few minutes). ASSERT failure in QWidget: "Widgets must be created in the GUI thread.&...
Charles's user avatar
  • 1,163
0 votes
1 answer
48 views

Looking for the correct Qt5 mechanism to create an identical sized QGridLayout using a custom widget in the grid

So,I'm trying to build a small app that watches my MQTT server for messages and presents a widget with the MQTT JSON content for every message it sees. The logic works well, but I'm having a lot of ...
Peter Buelow's user avatar
0 votes
2 answers
3k views

Updating view based on model update on Qt

I am having trouble updating my qtableview when the data wrapped by the model the view uses changes. I am not talking about appending/adding data here, I am specifically talking about modifying ...
avernus's user avatar
  • 315
0 votes
1 answer
20 views

How to re-enable the background of QGraphicsView's child widgets?

When adding QWidgets such as QGroupBox and QFrame to a layout set on QGraphicsView, those widgets have no background. Various things that seem like they should re-enable it, do not work. (E.g., ...
user41010's user avatar
  • 101
0 votes
0 answers
43 views

Can't see a widget

I've been trying to create a frame to be shown as a tooltip, but be functionally different. It's got to be shown at a certain point, floating, to be called from a delegate. Now, if I don't pass a ...
Mykola Tetiuk's user avatar
1 vote
1 answer
105 views

What's the difference between two QHeaderView signals?

On Qt doc website in QHeaderView class i found two signals with similar descriptions: void QHeaderView::sectionDoubleClicked(int logicalIndex) and void QHeaderView::sectionHandleDoubleClicked(int ...
user avatar
1 vote
1 answer
487 views

Why QWidget::Mask based on QPixmap works fine, but Bitmap doesn't

Target: make my widget rounded, using QWidget::setMask At first, I want to make a mask using QRegion, but later I found that, make a rounded Rect based on region is a not simple way. So I decided to ...
user avatar
2 votes
1 answer
510 views

How can I go to a specific QWizard page number?

Qt 5, QWizard Hello! I have checked some answers on that subject but still can't quite figure that out. Here is the idea that I want to do: I want to create a button group navigate between QWizard ...
user avatar

15 30 50 per page
1
2 3 4 5
10