qt5.4

How can QOpenGLWidget update not result in paintGL events?

痴心易碎 提交于 2019-12-01 01:29:44
I'm logging calls to update() and paintGL() , but somehow, only update happens. paintGL is called a couple of times and then never again! How is this possible? The window is visible and isVisible() returns True every time update() is called. Specifically, I converted from QGLWidget to QOpenGLWidget . I replaced my calls to updateGL() with calls to update() , and I replaced passing the format to the constructor with calling setFormat() . I added various calls to makeCurrent() where appropriate. Is there anything I'm missing? It appears that QOpenGLWidget might be broken when it is one of many

No default repositories in Qt Maintenance Tool

Deadly 提交于 2019-11-30 00:16:23
I recently installed Qt 5.5 and its MaintenanceTool (MaintenanceTool.exe). The default repositories were working, but after one day, my MaintenanceTool suddenly reports that no repositories were set? I can temporaryly enter individual repositories in the MaintenanceTool, but I would like to get the default repos set. Why are they gone? How can I set the default repositories again? Thanks in advance The Maintenance Tool is doing crazy things since the recent updates made by Qt team. The only solution I know is: Add the next temporary repository in "Settings": Windows: http://download.qt.io

How can I simply parse a CSS like (!) file in my Qt application?

核能气质少年 提交于 2019-11-29 06:49:24
I have a document in a *.css (Cascading Style Sheets) like format, but it has its own keywords. Actually it is a personalized css (I call it *.pss), with own tags and properties. here I have an excerpt: /* CSS like style sheet file *.pss */ @include "otherStyleSheet.pss"; /* comment */ [propertyID="1230000"] { fillColor : #f3f1ed; minSize : 5; lineWidth : 3; } /* sphere */ [propertyID="124???|123000"] { lineType : dotted; } /* square */ [propertyID="125???"] { lineType : thinline; } /* ring */ [propertyID="133???"] { lineType : thickline; [hasInnerRing=true] { innerLineType : thinline; } } I

paintEvent in QTableView derived class: Paint device returned engine == 0, type: 1

牧云@^-^@ 提交于 2019-11-28 14:15:21
As a follow up of Qt load indicator by animated image (aka preloader) or alternative? I try to paint inside a QTableView . But when I initialize the QPainter I get the following warnings. QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0, type: 1 Here is the code (SO answer, with a button it seems to work ): void CDerivedFromQTableView::paintEvent(QPaintEvent *event) { QTableView::paintEvent(event); // draw original content QPainter p(this); // Problem: QPainter::begin: Paint device returned engine == 0, type: 1 const QPixmap pm(QPixmap:

QWebView or QWebEngineView

[亡魂溺海] 提交于 2019-11-28 05:53:34
Are there any functional differences between QWebView and QWebEngineView? If I understand correctly, QWebView is webkit, while QWebEngineView is blink. Are there any differences to the programmer? Does one offer more customization of look & feel over the other? I would give QtWebEngine a try. It is replacing QtWebKit for a reason. If you control the HTML that is getting rendered, then it probably doesn't hurt to use QWebKit. Just make sure you test your pages beforehand. QWebView uses WebKit as the backend. http://doc.qt.io/qt-5/qwebview.html#details QWebEngineView uses Chromium as the backend

QWebView or QWebEngineView

北城以北 提交于 2019-11-27 00:58:53
问题 Are there any functional differences between QWebView and QWebEngineView? If I understand correctly, QWebView is webkit, while QWebEngineView is blink. Are there any differences to the programmer? Does one offer more customization of look & feel over the other? 回答1: I would give QtWebEngine a try. It is replacing QtWebKit for a reason. If you control the HTML that is getting rendered, then it probably doesn't hurt to use QWebKit. Just make sure you test your pages beforehand. QWebView uses

paintEvent in QTableView derived class: Paint device returned engine == 0, type: 1

偶尔善良 提交于 2019-11-26 14:48:36
问题 As a follow up of Qt load indicator by animated image (aka preloader) or alternative? I try to paint inside a QTableView . But when I initialize the QPainter I get the following warnings. QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0, type: 1 Here is the code (SO answer, with a button it seems to work): void CDerivedFromQTableView::paintEvent(QPaintEvent *event) { QTableView::paintEvent(event); // draw original content QPainter p(this); //