Re: [Interest] QTemporaryFile::open()

2017-02-17 Thread Mike Chinander
See: http://doc.qt.io/qt-5/qtemporaryfile.html#open "A QTemporaryFile will always be opened in QIODevice::ReadWrite mode, this allows easy access to the data in the file. This function will return true upon success and will set the fileName() to the unique filename used." On Fri, Feb 17, 2017 at

[Interest] QTemporaryFile::open()

2017-02-17 Thread Larry Martell
When I call QTemporaryFile::open() with any OpenMode flags I get an error. Code: QTemporaryFile wi_file; if (wi_file.open(QIODevice::WriteOnly)) { Error: /Users/lmartell/ia/cap/workItem.cpp:877:15: error: 'open' is a protected member of 'QTemporaryFile' if (wi_file.open(QIODevice::WriteO

[Interest] Scaling QTextDocument into a drawing region

2017-02-17 Thread Bob Hood
I want to wrangle HTML-formatted text contained in a QTextDocument into a specific drawing region, but I want it drawn there scaled-to-fit instead of broken-to-fit. I'm not gettingthat, and I'm scratching my head. Some code for discussion: ... QTextDocument td; td.setDocumentMargi

Re: [Interest] [cfe-dev] The QtReslot Clang plugin

2017-02-17 Thread Kevin Funk
On Thursday, 16 February 2017 11:24:17 CET Richard Braun via cfe-dev wrote: > On Wed, Feb 15, 2017 at 05:55:13PM +, Sérgio Martins wrote: > > Beware that the new PMF syntax is not a drop in replacement for the old > > style. Applying these fixits on a codebase might introduce bugs. > > Yes, th

[Interest] HowTo set Android --user (AndroidForWork) to run work app on device

2017-02-17 Thread ekke
Just doing my first AndroidForWork Qt App for one of my customers. (QtQuickControls2) Will blog about the details later. With AndroidForWork (AfW) your Android device is managed by IT and there are private apps and work apps. I managed to deploy app to Android Device from QtC. Sideloading Apps to