Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render data #3

Open
ognif opened this issue Sep 30, 2019 · 2 comments
Open

Render data #3

ognif opened this issue Sep 30, 2019 · 2 comments

Comments

@ognif
Copy link

ognif commented Sep 30, 2019

If I use the widget inside my software, the widget do not refresh after the buffer is set. After call:
hexView->clear(); hexView->setData(new QHexView::DataStorageArray(byteArray));

it need a click inside the widget to get a refresh of the data. What is the trick to make it after setData refreshed?

@virinext
Copy link
Owner

You can try to call repaint() (https://doc.qt.io/qt-5/qwidget.html#repaint) directly.
hexView->setData(new QHexView::DataStorageArray(byteArray)); hexView->repaint();
I hope it can help you.

@ognif
Copy link
Author

ognif commented Sep 30, 2019

Many thanks for your reply. I added

viewport() -> update();

at the end of setData and this works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants