Re: [Interest] QtWebKit and open URL in new tab window

2017-11-20 Thread Konstantin Tokarev
> Hi, > > I want to create new window in my QTabWidget when we get "target=_new" from > HTML file. > > We are getting "createWindow" call from Qt when user click on any link with > attribute "target=_new" and I am handling that and open in new tab in > QTabWidget. > > BUT when we close the

[Interest] QtWebKit and open URL in new tab window

2017-11-20 Thread neel patel
Hi, I want to create new window in my QTabWidget when we get "target=_new" from HTML file. We are getting "createWindow" call from Qt when user click on any link with attribute "target=_new" and I am handling that and open in new tab in QTabWidget. BUT when we close the opened tab and again clic

Re: [Interest] Two QCoreApplication objects with a twist

2017-11-20 Thread Lorenz Haas
Thanks for your input! I see that I'll need to get more familiar with the event dispatcher mechanism, although I am going to purge the library's Qt4-QCoreApplication... 2017-11-17 17:36 GMT+01:00 Thiago Macieira : > On sexta-feira, 17 de novembro de 2017 08:22:42 PST Konstantin Tokarev wrote: >> >

[Interest] QScroller has not effect when used on a QGraphicsView on Android?

2017-11-20 Thread Nikos Chantziaras
I'm using QScroller on QScrollView-based classes on Android and it works fine. When used on a QGraphicsView however, it has no effect. This: QGraphicsView* gv = // ... QScroller::grabGesture(gv->viewport(), QScroller::LeftMouseButtonGesture); seems to have no effect. If I override the mouse pr

Re: [Interest] Custom indicator on QTableWidgetItem

2017-11-20 Thread Murphy, Sean
> You can use a QStyledItemDelegate, and override the paint method.  Call > the base method to clear the cell and draw the text, then add your > indicator based on the role.  Eg: Thanks for the suggestion, I'll take a look at it! It seems like it should do the trick for me. Sean This message

Re: [Interest] Custom indicator on QTableWidgetItem

2017-11-20 Thread Tony Rietwyk
Hi Sean, You can use a QStyledItemDelegate, and override the paint method.  Call the base method to clear the cell and draw the text, then add your indicator based on the role.  Eg: void CellDelegate::paint(QPainter *painter,  const QStyleOptionViewItem &option,  const QModelIndex &index) co

Re: [Interest] Performance comparison of painting methods

2017-11-20 Thread Gunnar Roth
>On 13.11.2017 17:12, Jean-Michaël Celerier wrote: >> http://kgronholm.blogspot.fr/2017/11/qt-510-qml-shape-testing.html >> >> An interesting blog post which compares QPainter, the upcoming QML >> Shapes and QNanoPainter. I'm surprised to see QML Shapes perform so >> much slower than good old QP

[Interest] Custom indicator on QTableWidgetItem

2017-11-20 Thread Murphy, Sean
Some spreadsheet applications (notably MS Excel, Google Sheets, etc.) have a mechanism for indicating that a cell has a comment attached to it (see attached screenshot, the red triangle in the upper corner of the cell A1). Is there a way to do something similar with a QTableWidgetItem? The only

Re: [Interest] Customized Qt Platform Abstraction plugin

2017-11-20 Thread Benjamin TERRIER
2017-11-17 23:52 GMT+01:00 Philippe : >> You can do hybrid apps in Qt, I did one in MFC and Qt. Remember at some >> level Qt is "just a library". I'd imagine that at some point though you'd >> need to merge the event loops depending on the level of intertop required. >> If you don't have the sa