Re: [Interest] alphabetize the symbol menu?

2022-04-27 Thread Mike Chinander
It's supposed to be fixed in QtCreator 8

https://bugreports.qt.io/browse/QTCREATORBUG-27392
https://bugreports.qt.io/browse/QTCREATORBUG-27411

On Wed, Apr 27, 2022 at 11:55 AM John Weeks  wrote:

> With the clangd code model in the latest versions of Qt Creator, we seem
> to have lost the ability to order the menu of symbols in an editor window
> alphabetically. That would be the menu in the bar above the area holding
> editor windows and views.
>
> Am I missing something?
>
> -John Weeks
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtCreator 5.0.1 bug

2021-10-06 Thread Mike Chinander
QtCreator 5.0.2 is supposed to fix this.
https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/dist/changes-5.0.2.md?h=5.0

On Wed, Oct 6, 2021 at 9:51 AM Nuno Santos 
wrote:

> Hi,
>
> Is just me or we can’t cancel builds on the latest QtCreator?
>
> When I choose to cancel a build, the build stops, but I can’t trigger a
> new build unless I close QtCreator and start it over again.
>
> Is anyone else having this problem?
>
> Regards,
>
> Nuno
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QFile and file shortcuts on Windows.

2021-09-24 Thread Mike Chinander
You'll probably only have to write a little extra code and use
QFileInfo::isSymLink() 
and QFileInfo::symLinkTarget()


On Fri, Sep 24, 2021 at 10:01 AM Crocker, William <
william.croc...@analog.com> wrote:

> Hello:
>
>
>
> My app uses Qfile:
>
>
>
> QFile in_file(file_to_read);
>
> if( in_file.open(QIODevice::ReadOnly|QIODevice::Text) ) {
>
> ...
>
>
>
> On windows this fails (for me) for files which are actually Windows
> shortcuts to the real file.
>
> Is that a bug or am I supposed to the provide special code for shortcut
> detection and processing.
>
> I am using Qt 5.9.1 (forgive me).
>
>
>
> Thanks.
>
>
>
> ***
>
> Bill
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt6 porting guidance: (MSDEV) QMAKE_CXXFLAGS += /source-charset

2021-07-08 Thread Mike Chinander
Does it let you remove the utf-8 option?

QMAKE_CXXFLAGS -= /utf-8


On Thu, Jul 8, 2021 at 8:20 PM David M. Cotter  wrote:

> all my source code was originally written on mac in the late 90's early
> aughts. (of course more written since, but using same source file text
> encoding)
>
> it's a monumental project, with localizations in about over half a dozen
> languages
>
> all the source code, and therefore the in-line strings are "MacRoman" text
> encoding: strings have curly quotes, and ellipsis, and who knows what else
> non-ascii characters
>
> this worked just fine up 'till Qt 5, the windows compiler would would just
> swallow the MacRoman strings and they would show up in the ui, properly
> localized (i use my own localization subsystem)
>
> but with Qt6, the msdev compiler chokes on all my non-ascii strings.
>
> come to find out Qt6 is passing "/source-charset:utf-8" to the compiler.
> how did i find out?
>
> cuz i tried to explicitly pass "/source-charset:.1" in my .pro file,
> like this:
>
> QMAKE_CXXFLAGS += /source-charset:.1
>
>
> but then i get an error saying this:
>
> cl : Command line error D8016 : '/source-charset:.1' and '/utf-8'
> command-line options are incompatible
>
>
> so what gives? has qt6 taken away my right to decide the encoding of my
> own files?
>
> i have THOUSANDS of files. and if i change the strings, that is a very big
> cost relating to re-translating them for localization.
>
> and no, before you suggest it, i can't convert the sources to utf8
> encoding either, cuz that would break a lot of other stuff.
>
> how do i fix this?
>
> -dave
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Operator QMap[] is casting to int?

2019-05-03 Thread Mike Chinander
On that last line you're indexing a QList which takes an int for its
argument.

https://doc.qt.io/qt-5/qlist.html#operator-5b-5d

On Fri, May 3, 2019 at 9:44 AM Jason H  wrote:

> Given the code below:
> QMap reverseHistogram;
> ...
> QList reverseKeys = reverseHistogram.keys();
> int foregroundIndex = reverseHistogram.size()-2;   // arg,
> QMap::size() returns signed
> uint foregroundPixels = reverseKeys[foregroundIndex];
> uint foregroundColor = reverseKeys[foregroundPixels];
> uint foregroundColor = reverseKeys[foregroundPixels]; //main.cpp:66:37:
> warning: implicit conversion changes signedness: 'uint' (aka 'unsigned
> int') to 'int'
>
> Where is the "signed" conversion happening?
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Interest Digest, Vol 79, Issue 20

2018-04-26 Thread Mike Chinander
Has the Superconducting Super Collider been revived?

On Thu, Apr 26, 2018 at 7:38 AM, Roland Hughes 
wrote:

Read up on seismic testing or stuff happening with the Super Colliding
> Super Conductor. In the case of SCSC many thousands of disposable chip
> "sensors" running an application to pick up one or a few certain readings
> are streaming that stuff back to the only box which can handle them, big
> iron. IBM was never the fastest computationally, but when it comes to data
> throughput to/from disk they are a 14" city water main and their nearest
> competitor is happy the one day per week they achieve being a fire hose.
>
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt Charts: Making the legend top and right aligned

2018-04-11 Thread Mike Chinander
Not sure of a solution to this, but noticed that unlike other uses of
Qt::Alignment flags, the QLegend docs say, "If you set more than one flag,
the result is undefined."

https://doc.qt.io/qt-5.10/qlegend.html#alignment-prop

On Wed, Apr 11, 2018 at 8:51 AM, Christopher Probst <
christop.pro...@gmail.com> wrote:

> Hi,
>
> I would like to place the legend of  chart that uses Qt charts at the top
> right of the view. I would have expected something like this to work:
>
>  m_chart->legend()->setAlignment(Qt::AlignTop| Qt::AlignRight)
>
>
> Unfortunately it does not! Is there a direct way to  make the legends (right 
> or left) be top aligned rather then middle.?
>
>
> Thanks,
>
> Christopher
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML Rotation sensor readings [images]

2018-02-02 Thread Mike Chinander
Are you sure you can't specify any orientation with these angular ranges?
Are you looking at all the three rotation angles in the example you gave in
your bug report (i.e., the 'roll' angle might be 180 for your cases when
you are expecting the pitch angles to be greater than 90)? Android
orientation has one angle that only has a range of 180 (-90 to 90) degrees
too (same as QRotationReading 
).:

See the Sensor.TYPE_ORIENTATION on this page:

https://developer.android.com/reference/android/hardware/SensorEvent.html#values

On Fri, Feb 2, 2018 at 3:30 PM, Jason H  wrote:

> https://bugreports.qt.io/browse/QTBUG-66168
>
> > Sent: Thursday, February 01, 2018 at 1:48 AM
> > From: "Alex Blasche" 
> > To: "Jason H" 
> > Cc: "interestqt-project.org" 
> > Subject: RE: [Interest] QML Rotation sensor readings [images]
> >
> >  > It seems that Qt's implementation does not possess the full range of
> reading
> > > that it should, since both mobile platforms support greater (and
> necessary
> > > values) beyond a quarter circle.
> >
> > Could you please file bugs for the issues you found? It's the only way
> there is the chance to get this fixed. It is the only way to guarantee the
> attention of the relevant developer. Thank you.
> >
> > --
> > Alex
> >
> >
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt Charts questions

2018-01-08 Thread Mike Chinander
You are right; it's available for Commercial licensees too. I
misinterpreted you saying QCustomPlot wasn't an option for you since it was
GPL.

On Mon, Jan 8, 2018 at 2:03 PM, Murphy, Sean  wrote:

> > The Qt Charts module is licensed under GPL, not LGPL. See:
> > http://doc.qt.io/qt-5/qtmodules.html#gpl-licensed-addons
>
> We have a commercial Qt license, so I believe we aren't
> GPL-bound for Qt Charts (or the Data Visualization &
> Virtual Keyboard modules)?
>
> That link you sent says "Add-ons available under Commercial
> Licenses, or GNU General Public License v3". We operate in the
> former part of that sentence.
>
> Sean
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt Charts questions

2018-01-08 Thread Mike Chinander
The Qt Charts module is licensed under GPL, not LGPL. See:
http://doc.qt.io/qt-5/qtmodules.html#gpl-licensed-addons

On Mon, Jan 8, 2018 at 1:13 PM, Murphy, Sean  wrote:

> > > I find that they work well if you're just trying to have one plot, but
> I'm struggling to get
> > > them to work the way I need them to for our requirements:
>
> > Are you looking for a library that you want to include into your
> application or do you
> > simply want to visualize the data as described? If the latter is the
> case, why not to use
> > plotting applications like Kst LabPlot, etc.? In case you need a
> library, maybe you want
> > to check QCustomPlot - it's more powerful I think. Our plotting engine
> in LabPlot would
> > be also able to fulfill your requirements but the code is not available
> as a separate
> > library yet..
>
> I'm definitely looking for a library. A huge part of the purpose of my
> application is to
> talk to one of our devices, log data from it, plot it on a timeline, and
> allow the user to
> access that data visually.
>
> I had never heard of QCustomPlot before, I'm looking at it now, but if I'm
> reading their site
> correctly, the licensing might not work for us - it appears to be licensed
> GPL and we'd need
> something more like LGPL
>
> Sean
>
>
> This message has been scanned for malware by Forcepoint.
> www.forcepoint.com
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Issue with concurrent QNetworkRequests

2017-09-26 Thread Mike Chinander
Why can't you use only one QNetworkAccessManager instance for your
application?

On Tue, Sep 26, 2017 at 1:55 PM, Jani Tykka  wrote:

> Hi,
>
> I'd ask if the following issues would ring anyones bells, before I start
> doing more deeper investigation and create test application to reproduce
> the issue. Basically the issue in our application is reproduced following
> way.
>
> 1. Have 1 big download (https) 100MB (It uses own QNam instance)
>  - file is being written from the data got from QNetworkReply::readyRead
> 2. During the download execute other requests (https) using different QNam
> instance
>
> What is experienced that if during download other requests are executed
> the data received from readyRead contains extra bytes in the middle of
> chunked responses. It can be that the total file size received grows to
> 120MB. Those extra bytes are always zeros.
>
> If there are no other request executed at the same time the download will
> always be successful. This issue is only reproducible on Windows, not on
> MacOS. There is no code relation (other than inside Qt) on those modules
> where concurrent requests are being made.
>
> Any help or ideas on this are warmly welcome, thanks.
>
>
>
> This email is intended solely for the person or entity to which it is
> addressed and may contain confidential and/or privileged information. If
> you are not the intended recipient and have received this email in error,
> please notify BroadSoft, Inc. immediately by replying to this message, and
> destroy all copies of this message, along with any attachment, prior to
> reading, distributing or copying it.
>
> Ce message confidentiel  et les éventuelles pièces jointes sont à l’usage
> exclusif de son ou de sa destinataire. Il est interdit, pour toute autre
> personne, de le distribuer, d’en dévoiler le contenu ou de le reproduire.
> Si vous avez reçu cette communication par erreur, veuillez en informer
> immédiatement l’expéditeur par courrier électronique et détruire l’original
> de ce message ainsi que toute copie.
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt and MSVC 2017

2017-04-29 Thread Mike Chinander
On Sat, Apr 29, 2017 at 10:33 AM, Thiago Macieira  wrote:

> Qt 5.8 works with MSVC 2017 flawlessly.
>
> Note: 5.8, not 5.8.0.
>

What's the distinction between 5.8 and 5.8.0? MaintenanceTool is telling me
that 5.8.0-1 is the latest version of 'Qt 5.8'.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Plane rotations

2017-04-05 Thread Mike Chinander
The following is equivalent to your equation:

float cosAngle = QVector3D::dotProduct(v1.normalized(), v2.normalized());

Your numerator is the dot product and the denominator does the
normalization (makes them unit vectors).

On Wed, Apr 5, 2017 at 7:50 AM, Igor Mironchik 
wrote:

> Hi,
>
>
> 05.04.2017 15:13, Sean Harmer пишет:
>
>> Yes, just use the dot product.
>>
>
> You want to say, that QVector3D::dotProduct() will give me an angle?
>
>
>> Sean
>>
>> On Wednesday 05 April 2017 14:59:48 Igor Mironchik wrote:
>>
>>> Hi,
>>>
>>> I Googled it and found:
>>>
>>> The cos of angle between vectors is:
>>> |(ax*bx + ay*by + az*bz)
>>>
>>>  sqrt(ax*ax +
>>> ay*ay + az*az) * sqrt(bx*bx + by*by + bz*bz)|
>>>
>>> 05.04.2017 14:52, Igor Mironchik пишет:
>>>
 05.04.2017 14:45, Igor Mironchik пишет:

> Hi,
>
> 05.04.2017 14:29, Paolo Angelelli пишет:
>
>> Just cross N and M to get the vector around which to rotate.
>>
>> Then use a QQuaternion to set the rotation in the
>> Qt3DCore::QTransform,
>> and construct it with fromAxisAndAngle(const QVector3D &axis, float
>> angle)
>>
> Ok, I can rotate around the right axis. But what angle should I rotate?
>
 This is my question.

 And how can I calculate new normal to the rotated plane?
>
 I already know it...

 I just need to know what angle should I rotate.

 On Wed, 5 Apr 2017 14:18:56 +0300
>>
>> Igor Mironchik  wrote:
>>
>>> Hello,
>>>
>>> Let's say I have two vectors - N (normal vector to plane P1) and M
>>> (normal vector to plane P2).
>>>
>>> How to calculate x, y, z axis rotations angles for plane P2 to make
>>> plane P2 parallel to P1?
>>>
>>> How to calculate x, y, z axis rotations angles for plane P2 to
>>> rotate it
>>> around vector N?
>>>
>>> Thank you.
>>>
>>> And what is the measurement of angle in rotationX() of
>>> Qt3DCore::QTransform?
>>>
>>> I need to calculate angles in this units.
>>>
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest
>>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] How to paint smooth rendering of connected QLineF's?

2017-02-28 Thread Mike Chinander
If you are doing this within a QGraphicsView, make sure you turn on
antialiasing .
Also, you might want to try a rounded join style
 on the QPen you are using.
Posting an example of what you are getting now would help others help you.

On Tue, Feb 21, 2017 at 4:17 AM, Patrick Stinson 
wrote:

> Hello!
>
> I am painting a series of connected QLineF's with varying vectors and
> widths. Is there any way to smooth them out to be more vector-ish, so you
> don't see the jagged transitions between the segments?
>
>
> This is for hand writing notes with the Apple Pencil. I have one segment
> per event with pressure determining width and it just looks so jagged now...
>
>
> Thanks!
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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 2:49 PM, Larry Martell 
wrote:

> 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::WriteOnly)) {
>   ^~~~
>
> /usr/local/Qt-5.5.1/lib/QtCore.framework/Headers/qtemporaryfile.h:88:10:
> note: declared protected here
> bool open(OpenMode flags) Q_DECL_OVERRIDE;
>
> If I do not pass in any args it complies fine. From the docs it seems
> I can pass in an OpenMode. What am I missing or doing wrong?
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt Android - Google Drive API

2017-02-16 Thread Mike Chinander
It's only a TechPreview in Qt5.8, but check out this blog post on using
QNetworkAuth.

http://blog.qt.io/blog/2017/01/25/connecting-qt-application-google-services-using-oauth-2-0/

On Thu, Feb 16, 2017 at 10:13 AM, Viktor Engelmann 
wrote:

> https://itsfoss.com/use-google-drive-linux/ looks promising
>
>
> Am 16.02.2017 um 17:09 schrieb Robert Iakobashvili:
> > Thanks,
> > but it seems that we need to have write-access to Google Drive as well
> and here:
> >
> > "Read-only access to Google Docs, Sheets, and Slides (exported to
> > configurable formats)"
> >
> > Kind regards,
> > Robert
> >
> >
> > On Thu, Feb 16, 2017 at 5:59 PM, Viktor Engelmann
> >  wrote:
> >> http://gdfuse.forge.ocamlcore.org/ might help
> >>
> >>
> >> Am 16.02.2017 um 16:50 schrieb Robert Iakobashvili:
> >>> Gentlemen,
> >>> Are there any people with experience of integrating
> >>> with Google Drive API, particularly for Qt-based Android apps?
> >>>
> >>> If something we have already in Qt - that could be the best option.
> >>>
> >>> I need to add an option to get authorization for access,
> >>> download, edit and save back for files located at Google Drive.
> >>>
> >>> Any links, pointers, examples or considerations would be very much
> appreciated.
> >>>
> >>> Thanks in advance.
> >>>
> >>> Kind regards,
> >>> Robert
> >>> ___
> >>> Interest mailing list
> >>> Interest@qt-project.org
> >>> http://lists.qt-project.org/mailman/listinfo/interest
> >> --
> >>
> >> Viktor Engelmann
> >> Software Engineer
> >>
> >> The Qt Company GmbH
> >> Rudower Chaussee 13
> >> D-12489 Berlin
> >>
> >> viktor.engelm...@qt.io
> >> +49 151 26784521
> >>
> >> http://qt.io
> >> Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho
> >> Sitz der Gesellschaft: Berlin
> >> Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
> >>
> >> ___
> >> Interest mailing list
> >> Interest@qt-project.org
> >> http://lists.qt-project.org/mailman/listinfo/interest
>
> --
>
> Viktor Engelmann
> Software Engineer
>
> The Qt Company GmbH
> Rudower Chaussee 13
> D-12489 Berlin
>
> viktor.engelm...@qt.io
> +49 151 26784521
>
> http://qt.io
> Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho
> Sitz der Gesellschaft: Berlin
> Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QDataStream null terminated string / Bug or expected behavior?

2017-02-10 Thread Mike Chinander
I think it's str.c_str() that's adding the null character at the end of
your string, not anything with QDatastream or QBytearray.

On Fri, Feb 10, 2017 at 9:27 AM, Etienne Sandré-Chardonnal <
etienne.san...@m4x.org> wrote:

> Thanks for the link. Yes, I'm doing something bad, but there is no strong
> reason to encode a string litteral differently than a QByteArray and not
> allowing this. But since retro-compatibility is more important I suppose
> this cannot be changed...
>
> Is there a page summarizing all QDataStream >> overloads? They are not in
> QDataStream documentation, even as non-members. Seems difficult to find
> them all without looking into all the storage classes.
>
> 2017-02-09 22:09 GMT+01:00 Thiago Macieira :
>
>> On quinta-feira, 9 de fevereiro de 2017 18:18:07 PST Etienne
>> Sandré-Chardonnal
>> wrote:
>> > Dear all,
>> >
>> > I just found out a bug in my code which was due to the way I wrote/read
>> > from QDataStream.
>> >
>> > I write a string like that in one program, from a std::string. This uses
>> > the null-terminated char* overload of << :
>> >
>> > std::string str("test");
>> > stream << str.c_str();
>> >
>> > I read the data like that in another program:
>> >
>> > QByteArray ba;
>> > stream >> ba;
>> >
>> > Then ba.size() returns 5 and it contains the null character. Therefore,
>> > comparing it to "test" failed.
>> >
>> > In the documentation I cannot find a QByteArray & overload of operator
>> >>.
>> > QByteArray is not supposed to be castable to char*. What is happening
>> here?
>>
>> The two operators are there:
>> Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QByteArray &);
>> Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QByteArray &);
>>
>> And they're documented:
>> http://doc.qt.io/qt-5/qbytearray.html#operator-lt-lt
>> http://doc.qt.io/qt-5/qbytearray.html#operator-gt-gt
>>
>> The bug is in your code for marshalling one type and demarshalling
>> another.
>> That's not guaranteed to work. The behaviour of the two functions is
>> different. See for yourself:
>>
>> https://code.woboq.org/qt5/qtbase/src/corelib/tools/
>> qbytearray.cpp.html#_ZlsR11QDataStreamRK10QByteArray
>> https://code.woboq.org/qt5/qtbase/src/corelib/io/
>> qdatastream.cpp.html#_ZN11QDataStreamlsEPKc
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel Open Source Technology Center
>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QDataStream null terminated string / Bug or expected behavior?

2017-02-09 Thread Mike Chinander
How are you comparing it to "test" after reading to the QByteArray? You
could use str.data() instead str.c_str(). Or use QStrings to read to/from
the QDatastreams.

On Thu, Feb 9, 2017 at 11:18 AM, Etienne Sandré-Chardonnal <
etienne.san...@m4x.org> wrote:

> Dear all,
>
> I just found out a bug in my code which was due to the way I wrote/read
> from QDataStream.
>
> I write a string like that in one program, from a std::string. This uses
> the null-terminated char* overload of << :
>
> std::string str("test");
> stream << str.c_str();
>
> I read the data like that in another program:
>
> QByteArray ba;
> stream >> ba;
>
> Then ba.size() returns 5 and it contains the null character. Therefore,
> comparing it to "test" failed.
>
> In the documentation I cannot find a QByteArray & overload of operator >>.
> QByteArray is not supposed to be castable to char*. What is happening here?
>
> Thanks for your help!
>
> Best regards,
>
> Etienne
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QDateTime Issue in Qt5.8.0 msvc2013,msvc2015

2017-02-01 Thread Mike Chinander
On Wed, Feb 1, 2017 at 8:44 AM, Günter Michel  wrote:

> This simple code returns an invalid date compiled with Qt5.8.0 msvc2013:
>
> QDateTime dt = QDateTime::currentDateTime();
>
> Compiling with mingw results in correct date but wrong time. Code works in
> Qt5.7.1
> What's going on here?
>


This is what I get with 5.8.0RC and msvc2013 on Windows 7 (it's correct):

QDateTime dt = QDateTime::currentDateTime();
qDebug() << "Current Date: " << dt;
qDebug() << "Current Date: " << dt.toString(Qt::ISODateWithMs);

Output:

Current Date:  QDateTime(2017-02-01 08:52:22.838 Central Standard Time
Qt::TimeSpec(LocalTime))
Current Date:  "2017-02-01T08:52:22.838"

What exactly do you mean by "invalid date"?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.8.0 RC build under windows

2017-01-22 Thread Mike Chinander
Nothing special:

configure -opengl desktop -no-compile-examples -mp

I have 8.0 and 8.1 folders in "C:\Program Files (x86)\Windows Kits", I
assume it's using 8.1SDK. The compiler is VS2013 x64. I'm not sure if it's
because it's deprecated or my configure flags, but QtDeclarative wasn't
built for me.

On Sun, Jan 22, 2017 at 4:03 AM, Prav  wrote:

> Hello, Mike and Everyone.
>
>
>
> I compiled Qt 5.8.0 RC on Windows 7 with MSVC2013 and the Windows 8 SDK. Can
> you (or anyone) share confgure string which successfully build Qt 5.8.0 RC
> (at least QtDeclarative)? Please tell which version of VC compiler and
> WinSDK was used.
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.8.0 RC build under windows

2017-01-18 Thread Mike Chinander
On Wed, Jan 18, 2017 at 1:04 AM, Prav  wrote:

>
> Does anyone know about requirements of using Win10SDK for Qt 5.8.0? Is
> Win10SDK is really necessary to build Qt even for Win7 or it is bug in Qt
> build system?


I compiled Qt 5.8.0 RC on Windows 7 with MSVC2013 and the Windows 8 SDK.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Update breaks version

2016-12-19 Thread Mike Chinander
Are you sure you are not mixing MinGW and VS builds/libraries?

On Mon, Dec 19, 2016 at 11:03 AM, Duane  wrote:

> On 19/12/2016 11:49 AM, Duane wrote:
>
>> On 19/12/2016 11:03 AM, Kai Koehne wrote:
>>
>>> -Original Message-
 From: Interest [mailto:interest-bounces+kai.koehne=qt...@qt-project.org
 ]
 On Behalf Of Duane
 Sent: Monday, December 19, 2016 4:10 PM
 To: interest@qt-project.org
 Subject: [Interest] Update breaks version

 I have Qt installed on Windows using MinGW.  I was at 5.7.0 and
 updated via
 the Maintenance tool to get to 5.7.1 and Creator 4.2.0.  My programs
 build
 but when I deploy them to systems with 5.7.0 dlls they don't work.
   I thought the dlls were compatible through minor revisions?

>>>
>>> They should be, and the toolchain to the best of my knowledge hasn't
>>> changed
>>> in 5.7.1 packages.
>>>
>>> Could you clarify what 'don't work' means? I suggest to run the
>>> application
>>> in the Profile mode of 'Dependency Walker' (depends.exe) to find out
>>> details.
>>>
>>>
>> Don't work means that if I deploy the exe on a target machine with
>> Qt4.7.0 dlls it won't run.  "It reports that the application has
>> requested the runtime to terminate in an unusual way."  If I replace the
>> dlls with those from 4.7.1 then it works.
>>
>> I have two toolchains.  One with MinGW 3.0  and Qt 4.7.1 that I use with
>> QtCreator.  This is the one that seems broken.  I think that MinGW was
>> updated but it is still 3.0.
>>
>> The other tool chain is with Qt 5.5 for the VS2012 compiler.  This one
>> wasn't updated and doesn't seem to have this problem.
>>
>>
>
> If I launch the exe from the QtCreator IDE but with the 4.7.0 dlls in the
> taget folder I get the same crash but in the debug window of Creator I get
> this:
>
> Cannot mix incompatible Qt library (version 0x50701) with this library
> (version 0x50700)
> Invalid parameter passed to C runtime function.
> Invalid parameter passed to C runtime function.
>
> I keep the dlls in the target folder for my debug builds so that I can use
> a 3rd party program (Memory Validator) to check memory.
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Problem compiling boost::python code in Qt

2016-09-28 Thread Mike Chinander
On Sep 28, 2016 10:54 PM, "Kapil Gupta"  wrote:
>
> Hi,
>
> I am using Boost::python for access to python code from c++.
> When I included the `PythonLibs` and Boost::Python into my code, I
started having this error:
>
> ```
> /usr/include/python3.5m/object.h:445:23: error: expected unqualified-id
before ‘;’ token
>  PyType_Slot *slots; /* terminated by slot==0. */
>^
> /home/cortana/QtProjects/deep-app/src/code/main.cpp: In function ‘int
main(int, char**)’:
> /home/cortana/QtProjects/deep-app/src/code/main.cpp:8:36: error:
‘AA_EnableHighDpiScaling’ is not a member of ‘Qt’
>  QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
> ^
> src/CMakeFiles/deep-app.dir/build.make:62: recipe for target
'src/CMakeFiles/deep-app.dir/code/main.cpp.o' failed
> make[2]: *** [src/CMakeFiles/deep-app.dir/code/main.cpp.o] Error 1
> CMakeFiles/Makefile2:86: recipe for target
'src/CMakeFiles/deep-app.dir/all' failed
> make[1]: *** [src/CMakeFiles/deep-app.dir/all] Error 2
> Makefile:127: recipe for target 'all' failed
> make: *** [all] Error 2
> ```
>
> I dont understand the first error. It is in a Qt read-only file. What can
I do about it?
>
What version of Qt are you using? Qt::AA_EnableHighDpiScaling was added in
5.6.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Current QDataStream format documentation?

2016-09-23 Thread Mike Chinander
On Fri, Sep 23, 2016 at 11:47 AM, Reinhardt Behm  wrote:

> Or the have two devices are both based on Qt, but different versions.


Isn't this precisely the situation that QDataStream::setVersion() is for?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Help with Qt 5.6.1-1 32-bit build errors

2016-07-07 Thread Mike Chinander
Looks like it could be related to this bug report:
https://bugreports.qt.io/browse/QTBUG-53393

Did you try re-running nmake/jom after you got this error?

On Thu, Jul 7, 2016 at 10:57 AM, Bob Hood  wrote:

> I'm trying to build Qt 5.6.1-1 32-bit licensed static using Visual Studio
> 2013.  I am configuring with the following command:
>
> configure -commercial -confirm-license -static -prefix
> Q:\Qt\5.6.1\32_static -mp -release -nomake examples -no-qml-debug
> -no-compile-examples -nomake tests -opengl desktop
>
> I have successfully built 64-bit versions, static and DLL, licensed and
> open source, with similar config commands just prior to attempting the
> 32-bit builds.  At some point in the 32-bit build, I'm getting:
>
> LINK : fatal error LNK1181: cannot open input file
> 'D:\Qt\build\32_static\qtimageformats\plugins\imageformats\qwebp.lib'
>
> I read that the webkit had been removed from the 5.6 distribution (I'm
> using the source tarballs), but it looks like there's some kind of
> dependency upon it anyway.  I configured the 64-bit builds with ICU, but I
> did not with 32-bit because we don't want the webkit builds in the 32-bit
> static.  I tried adding the '-skip qtwebkit' command (which works fine for
> prior Qt versions), but then I get the different build error:
>
> Attempting to skip non-existent module qtwebkit.
> Error: File Makefile doesn't exist.
>
> Removing '-skip qtwebkit' from the config line leads me to the link error
> with the image format plug-in.
>
> Do I now need to provide ICU to the 32-bit builds even though we *aren't*
> building the webkit module, or is there some new means of disabling the
> webkit as part of that type of build?  I'd appreciate any insights here.
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] https://code.qt.io/qt/qt5.git

2016-06-06 Thread Mike Chinander
It just worked for me:

$ git clone https://code.qt.io/qt/qt5.git
Cloning into 'qt5'...
remote: Counting objects: 3671, done.
remote: Compressing objects: 100% (2183/2183), done.
remote: Total 3671 (delta 1861), reused 2816 (delta 1408)
Receiving objects: 100% (3671/3671), 3.94 MiB | 1.06 MiB/s, done.
Resolving deltas: 100% (1861/1861), done.
Checking connectivity... done.


On Mon, Jun 6, 2016 at 11:26 AM, Jason H  wrote:

> I'm getting a 404.
>
> It's referred to in https://wiki.qt.io/Building-Qt-5-from-Git
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Compiler optimisation flags on Android

2016-05-03 Thread Mike Chinander
>From https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

-Os
Optimize for size. -Os enables all -O2 optimizations that do not typically
increase code size. It also performs further optimizations designed to
reduce code size.
-Os disables the following optimization flags:

  -falign-functions  -falign-jumps  -falign-loops
  -falign-labels  -freorder-blocks  -freorder-blocks-algorithm=stc
  -freorder-blocks-and-partition  -fprefetch-loop-arrays


On Tue, May 3, 2016 at 12:00 PM, Nuno Santos 
wrote:

> I mean -O2, like the others
>
> Nuno Santos
> Founder / CEO / CTO
> www.imaginando.pt
> +351 91 621 69 62
>
> On 03 May 2016, at 06:27, Thiago Macieira 
> wrote:
>
> On segunda-feira, 2 de maio de 2016 22:07:03 PDT Nuno Santos wrote:
>
> Hi,
>
> Below are the CFLAGS for Android
> (Qt/5.6/android_armv7/mkspecs/android-g++/qmake.conf)
>
> I’m wondering why there are no optimisation settings for arm rather than
> size. Is there any specific reason?
>
>
> Why should there be?
>
> } else { # arm
>QMAKE_CFLAGS_RELEASE   = -Os -fomit-frame-pointer
> -fno-strict-aliasing -finline-limit=64
>QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO   = -g -Os -fomit-frame-pointer
>-fno-strict-aliasing -finline-limit=64
>QMAKE_CFLAGS_DEBUG = -g -marm -O0 -fno-omit-frame-
>pointer
>equals(ANDROID_TARGET_ARCH, armeabi):if(equals(NDK_TOOLCHAIN_VERSION,
> 4.8)|equals(NDK_TOOLCHAIN_VERSION, 4.9)) {
>DEFINES += QT_OS_ANDROID_GCC_48_WORKAROUND
>} else {
>QMAKE_CFLAGS_RELEASE += -mthumb
>QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -mthumb
>}
> }
>
>
> This section you pasted contradicts your statement. There are more
> optimisation flags besides -Os.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] big trouble with QCoreApplication

2016-04-09 Thread Mike Chinander
Are you running it from QtCreator or on the command line? On the command
line, what is the output of:

ldd yourapplicationname

Are there any mismatched versions of Qt libraries (or any missing
libraries)?

On Sat, Apr 9, 2016 at 5:33 PM, Freddy Martinez 
wrote:

> Hi Andy,  the output for the qt version qdebug is
>
> Qt compile version: 5.5.1
> Qt runtime version: 5.5.1
>
> But, it doesn’t have any sense that the QCoreApplication constructor give
> me a segfault, at less for me…
>
> regards
>
> =
> "El tamaño de tus logros depende del tamaño de tus metas."
> C++ and Qt Senior Developer
> B.S. Computer Science
> Buenos Aires, Argentina
>
> On Apr 9, 2016, at 7:04 PM, Andy  wrote:
>
> Freddy:
>
> What you are suggesting about Qt versions sounds likely.
>
> To see what versions are being used, you could try outputting the version
> used to compile and the runtime version in main() like this:
>
>qDebug().noquote() << "Qt compile version:" << QT_VERSION_STR;
>qDebug().noquote() << "Qt runtime version:" << qVersion();
>
>
>
> ---
> Andy Maloney  //  https://asmaloney.com
> twitter ~ @asmaloney <https://twitter.com/asmaloney>
>
>
> On Sat, Apr 9, 2016 at 5:44 PM, Freddy Martinez 
> wrote:
>
>> Hi Mike, and thanks for your answer….
>>
>> I had sent you a print screen, as you could see, the line 63 is
>>
>> QCoreApplication a(argc,argv)
>>
>> the only thing I suppose  that it’s happend is that in /usr/lib/x86_64/ I
>> have other qt5 libraries installed but for qt 5.4.2 version… maybe when I’m
>> trying to run the application is crahsed because is linking against 5.4.2
>> and I’m compiling with 5.5.1.
>>
>> I had download the offline installer and i had create a Qt folder on my
>> home directory, there I had installed Qt 5.5.1…
>>
>> that is my environment
>>
>> any advise ?
>>
>> regards
>>
>> 
>>
>>
>>
>> =
>> "El tamaño de tus logros depende del tamaño de tus metas."
>> C++ and Qt Senior Developer
>> B.S. Computer Science
>> Buenos Aires, Argentina
>>
>> On Apr 9, 2016, at 6:32 PM, Mike Chinander  wrote:
>>
>> What's on line 63 of main.cpp?
>>
>> On Sat, Apr 9, 2016 at 4:18 PM, Freddy Martinez 
>> wrote:
>>
>>> Hi guys..
>>>
>>> I’ve Kubuntu 15.10 and I’m working with qt 5.5.1…
>>>
>>> this is may main.cpp
>>>
>>> int main(int argc, char *argv[])
>>>
>>> {
>>>
>>> QCoreApplication a(argc, argv);
>>>
>>>
>>> if (!checkConfigurationFiles())
>>>
>>> {
>>>
>>> qDebug()<<"Unable to start server.";
>>>
>>>
>>> return 1;
>>>
>>> }
>>>
>>>
>>> QSettings* settings = new 
>>> QSettings(qApp->applicationDirPath()+"/config/server.ini",QSettings::IniFormat);
>>>
>>>
>>> QString lastError;
>>>
>>>
>>> NautamServer nautamServer(settings);
>>>
>>>
>>> ConsoleLoggerFactory loggerFactory;
>>>
>>>
>>> loggerFactory.setSettings(settings);
>>>
>>>
>>> nautamServer.setLoggerFactory(&loggerFactory);
>>>
>>>
>>> if (!nautamServer.startServer(lastError))
>>>
>>> qDebug()<<"Last error :"<>>
>>>
>>> return a.exec();
>>>
>>> }
>>>
>>>
>>> the problem is taht i’m gettirn segmentation fault in the first line of
>>> the main function as you’ll see in the stack as folowed:
>>>
>>> #0  0x737616e7 in QOpenGLContext::create() () from
>>> /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Gui.so.5
>>> #1  0x7fffe9b1d9bd in QtWebEngine::initialize() () from
>>> /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5WebEngine.so.5
>>> #2  0x74f63688 in QCoreApplication::init() () from
>>> /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Core.so.5
>>> #3  0x74f63b05 in QCoreApplication::QCoreApplication(int&,
>>> char**, int) () from /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Core.so.5
>>> #4  0x0044935b in main (argc=1, argv=0x7fffdea8) at
>>> ../../nautam-kernel/nautam-server/main.cpp:63
>>>
>>> well guys

Re: [Interest] big trouble with QCoreApplication

2016-04-09 Thread Mike Chinander
What's on line 63 of main.cpp?

On Sat, Apr 9, 2016 at 4:18 PM, Freddy Martinez 
wrote:

> Hi guys..
>
> I’ve Kubuntu 15.10 and I’m working with qt 5.5.1…
>
> this is may main.cpp
>
> int main(int argc, char *argv[])
>
> {
>
> QCoreApplication a(argc, argv);
>
>
> if (!checkConfigurationFiles())
>
> {
>
> qDebug()<<"Unable to start server.";
>
>
> return 1;
>
> }
>
>
> QSettings* settings = new 
> QSettings(qApp->applicationDirPath()+"/config/server.ini",QSettings::IniFormat);
>
>
> QString lastError;
>
>
> NautamServer nautamServer(settings);
>
>
> ConsoleLoggerFactory loggerFactory;
>
>
> loggerFactory.setSettings(settings);
>
>
> nautamServer.setLoggerFactory(&loggerFactory);
>
>
> if (!nautamServer.startServer(lastError))
>
> qDebug()<<"Last error :"<
>
> return a.exec();
>
> }
>
>
> the problem is taht i’m gettirn segmentation fault in the first line of
> the main function as you’ll see in the stack as folowed:
>
> #0  0x737616e7 in QOpenGLContext::create() () from
> /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Gui.so.5
> #1  0x7fffe9b1d9bd in QtWebEngine::initialize() () from
> /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5WebEngine.so.5
> #2  0x74f63688 in QCoreApplication::init() () from
> /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Core.so.5
> #3  0x74f63b05 in QCoreApplication::QCoreApplication(int&, char**,
> int) () from /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Core.so.5
> #4  0x0044935b in main (argc=1, argv=0x7fffdea8) at
> ../../nautam-kernel/nautam-server/main.cpp:63
>
> well guys, I really don’t know what happend and I don’t have any idea
> about what is wrong
>
> can you help me please?
>
> regards
>
>
> =
> "El tamaño de tus logros depende del tamaño de tus metas."
> C++ and Qt Senior Developer
> B.S. Computer Science
> Buenos Aires, Argentina
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Video file generation from Qt application, other than FFmpeg

2016-01-22 Thread Mike Chinander
I'm not a lawyer, but as long as you follow all the items in the "License
Compliance Checklist" on that page, you can use the FFmpeg library in
commercial software since you would be complying to their LGPLv2.1 license.
That 'Note that...' sentence says there is no separate commercial license
that can be obtained for using FFmpeg under different terms, it doesn't say
that it can't be used in commercial applications.

On Fri, Jan 22, 2016 at 2:14 PM, Phil Weinstein  wrote:

> Samuel, thanks for your response.
>
> It looks like *FFmpeg* is really NOT an option for *commercial
> applications* -- See for example: https://www.ffmpeg.org/legal.html (see
> especially the "Note that FFmpeg ..." sentence and the last two paragraphs
> on the page).
>
> I see that *OpenCV* ... http://opencv.org/ ... states that it's "free for
> both academic and commercial use", but there seem to be issues with this,
> e.g. as raised on this thread: "OpenCV Free for Commercial use" ...
> http://answers.opencv.org/question/73877/opencv-free-for-commercial-use/
>
> We really need to be squeaky clean on licensing. So we may be willing to
> pay a reasonable fee for the ability to *generate (create) video FILES*
> given a sequence of QImages or QPixmaps. (Or at least with the possibility
> of getting frame image DATA from either of those Qt classes into the thing).
>
> Can anyone point me to authoritative information delineating why *and how*
> these things CAN be used in commercial applications?
>
> - Phil
>
>
>
> On 1/21/2016 1:46 PM, Samuel Gaist wrote:
>
> On 21 janv. 2016, at 21:15, Phil Weinstein  
>  wrote:
>
>
> We will not be able to use the FFmpeg library for video generation from our 
> Qt application. Are there any other tools/products usable with Qt which can 
> do basic generation of video files, given a sequence of QImages or QPixmaps? 
> We don't need audio with the video.
>
> (Sorry for the repost. My original message went deep into a completely 
> unrelated thread).
>
> Hi,
>
> Out of curiosity, why can't you use ffmpeg ?
>
> There's VLClib that you can use but it's also ffmpeg based so it could be 
> problematic.
>
> OpenCV can also create video files.
>
> Hope it helps
> Samuel
>
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] zipping with Qt

2015-12-11 Thread Mike Chinander
On Dec 11, 2015 2:44 PM, "Michael Vetter"  wrote:
>
> Hello list,
>
> I am developing an application which should have a custom file format
> which in reality will just be a .tar.gz file. In is will be some xml
> files and images. I will need to install such a file and have in in my
> applications data folder.
>
Are these going to be static files (won't change after you install your
application)? If so, have you thought about using an external binary
resource file?  http://doc.qt.io/qt-5/resources.html
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] nunosan...@imaginando.pt, I'm calling you out!

2015-11-03 Thread Mike Chinander
On Tue, Nov 3, 2015 at 9:57 AM, Jason H  wrote:

> I only ever get this message in relation to you.
> Are you aware of this issue? Can you fix it? It happens every time I send
> mail to the list.
> Is anyone else getting this?
>
>
Just reply to the list and don't include Nuno's email address in the 'to:'
or 'cc:' line.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.5.x

2015-09-11 Thread Mike Chinander
Is your system time set to the correct time? Do the update times of the
your source and object files seem correct?

On Fri, Sep 11, 2015 at 10:42 AM, rpzrpz...@gmail.com 
wrote:

> Does anybody know a way to suppress re-compiling ALL the cpp files
> during each
>
> Many times, I would like files that are already compiled but have code
> that is untouched since the last build to just link again instead of
> recompiling.
>
> I am on OSX Yosemite building for OSX when I am doing development and
> initial testing.
>
> So I make 20 thousand change, rebuild, and re-run to see the result.
>
> But having the project get rebuilt everytime because I can see the
> output from the Compile Output window in Qt Creator and there is a lot
> of unnecessary building.
>
> You would figure the "Build Project xxx" in the menu would do this
> and "Rebuild Project xxx" would perform a complete rebuild.
>
> But that is not the case, they both perform a complete recompile on code
> that was not touched.
>
> Any ideas?
>
> md
>
> --
> No spell checkers were harmed during the creation of this message.
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Trouble setting stylesheet for widget

2015-09-09 Thread Mike Chinander
For styling named widgets, I thought you needed to use
QWidgetType#Objectname::element { }

In your case:
QTabWidget#mainTabWidget::tab {

}

On Wed, Sep 9, 2015 at 11:14 AM, Shinnok  wrote:

> Hi list,
>
> I'm currently having a lot of trouble setting object specific stylesheet.
> I'm on Qt 5.4.2/OSX 10.10/Creator 3.5.0. The stylesheet is set from Creator
> -> Designer on the object property:
>
> #mainTabWidget::tab {
> ...
> }
>
>  #mainTabWidget::tab:selected
> {
> }
>
> However this:
> #mainTabWidget::tab {
>
> Seems to apply. I don't remember this being the case with stylesheets
> syntax for selectors nor the documentation yields that. This is also not
> the first time I'm touching QSS. Full stylesheet in question
> https://github.com/Tarsnap/tarsnap-gui/blob/master/forms/mainwindow.ui#L76
> . None of those rules get applied for some reason.
>
> Maybe it's my setup or a Qt toolchain bug. Any idea as to what's going on
> here?
>
>
> Regards,
> Shinnok
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QFileSystemWatcher and accesing files in monitored directory...

2015-08-31 Thread Mike Chinander
Oops, just saw your later email with your code that checks this.

On Mon, Aug 31, 2015 at 4:52 PM, Mike Chinander  wrote:

>
> Does loadFromData() still return true when you get a messed up pixmap?
>
>
> On Mon, Aug 31, 2015 at 2:49 PM, Igor Mironchik 
> wrote:
>
>> Hi,
>>
>> On 31.08.2015 22:42, Alexey Godko wrote:
>>
>> just check QPixmap::isNull()
>>
>>
>> Pixmap is not null... Image was saved for the half and I read it...
>> Pixmap successfully loaded but draws only first part of the image while the
>> next one is grey...
>>
>
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QFileSystemWatcher and accesing files in monitored directory...

2015-08-31 Thread Mike Chinander
Does loadFromData() still return true when you get a messed up pixmap?


On Mon, Aug 31, 2015 at 2:49 PM, Igor Mironchik 
wrote:

> Hi,
>
> On 31.08.2015 22:42, Alexey Godko wrote:
>
> just check QPixmap::isNull()
>
>
> Pixmap is not null... Image was saved for the half and I read it... Pixmap
> successfully loaded but draws only first part of the image while the next
> one is grey...
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QFileSystemWatcher and accesing files in monitored directory...

2015-08-31 Thread Mike Chinander
Could your slot be getting the directoryChanged() signal before the file
write has completed by the other process (not sure how the file is being
created)?

On Mon, Aug 31, 2015 at 11:54 AM, Igor Mironchik 
wrote:

> 8/31/2015 7:40 PM, Alexey Godko пишет:
>
> What exactly error did you expect?
>
>
> The process cannot access the file because it is used by another process.
> But this file nobody axcept my application is trying to read. From OS I
> copied new file to the monitored system... And that's all
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt .dlls size reduction

2015-08-07 Thread Mike Chinander
Are you including only the minimal set of Qt dlls needed for your
application?

On Fri, Aug 7, 2015 at 8:31 AM, Rafael Machado <
rafaelrodrigues.mach...@gmail.com> wrote:

> Hi everyone
>
> This is my first question on this mail list, so sorry for possible trivial
> questions.
>
> I have task to reduce the size of an installer of an application from my
> company.
> What I checked is that the qt dlls that we use are kind of big, so my idea
> was to try to reduce these dlls sizes.
>
> To do it I have compiled qt removing several modules that we don't use.
> Something like:
>
> configure -release -confirm-license -opensource -nomake examples -nomake
> tests -no-evdev -no-mtdev -no-inotify -no-system-proxies -no-fontconfig
> -no-harfbuzz -no-plugin-manifests -no-ssl -no-openssl -no-dbus
> -no-audio-backend -no-wmf-backend -no-qml-debug -no-directwrite
> -no-direct2d -no-native-gestures -no-style-windows -no-style-windowsxp
> -no-style-windowsvista -no-style-fusion -skip qt3d -skip qtactiveqt -skip
> qtandroidextras -skip qtdoc -skip qtdocgallery -skip qtfeedback -skip
> qtlocation -skip qtmacextras -skip qtmultimedia -skip qtrepotools -skip
> qtscript -skip qtsensors -skip qtserialport -skip qtsvg -skip qttools -skip
> qttranslations -skip qtwayland -skip qtwebengine -skip qtwebkit -skip
> qtwebkit-examples -skip qtwinextras -skip qtx11extras
>
> After doing this, the qtcore.dll was reduced from 4.928.000 bytes
> to 4.617.728 bytes.
>
> I have checked at the documentation, and there are some options to remove
> some features from the packages. For example, in case, we don't need the
> feature UDPSOCKET for example, so adding to the configuration command the
> option -no-feature-UDPSOCKET should remove unneeded things. (Features found
> at C:\cygwin\home\.\qtbase\src\corelib\global\qfeatures.txt)
>
> The problem is that the option to remove features seems to be available
> just for linux-embedded and not for the windows version of qt.
> Is my understanding correct ?
>
> The last question. Is if is there any other option to try to reduce the
> .dll sizes ?
>
> Thanks for the help.
>
> Thanks and Regards
> Rafael R. Machado
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Odd assembler error on pure Qt project with GCC 4.8.2

2015-05-04 Thread Mike Chinander
Could possibly be due to the version of binutils you are using; check out
this thread on the gcc email list:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57017

On Mon, May 4, 2015 at 12:03 PM, Bob Hood  wrote:

> I'm building the Qt Service v2.7 project under CentOS 6.6 using GCC 4.8.2:
>
> [bob@centos64 qtservice_64_dll]$ gcc --version
> gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
> Copyright (C) 2013 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> I'm not setting any special options, just running qmake in the src/ folder
> and
> then launching "make -f Makefile.Release". However, I'm getting an error
> message that I don't get under Windows or OS X that appears to have to do
> with
> the Assembler output being compiled:
>
> ...
> g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DNDEBUG -DQT_NO_DEBUG
> -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
> -I/usr/local/qt/4.8.6/64_dll/mkspecs/linux-g++-64 -I.
> -I/usr/local/qt/4.8.6/64_dll/include/QtCore
> -I/usr/local/qt/4.8.6/64_dll/include/QtNetwork
> -I/usr/local/qt/4.8.6/64_dll/include/QtGui
> -I/usr/local/qt/4.8.6/64_dll/include -I. -Irelease -o release/qtservice.o
> qtservice.cpp
> {standard input}: Assembler messages:
> {standard input}:14: Error: expecting string instruction after `rep'
> {standard input}:30: Error: expecting string instruction after `rep'
> {standard input}:41: Error: expecting string instruction after `rep'
> {standard input}:52: Error: expecting string instruction after `rep'
> {standard input}:63: Error: expecting string instruction after `rep'
> {standard input}:333: Error: expecting string instruction after `rep'
> {standard input}:362: Error: expecting string instruction after `rep'
> {standard input}:471: Error: expecting string instruction after `rep'
> {standard input}:608: Error: expecting string instruction after `rep'
> {standard input}:954: Error: expecting string instruction after `rep'
> {standard input}:5569: Error: expecting string instruction after `rep'
> make: *** [release/qtservice.o] Error 1
> Failed to build Qt 4.8.6 release
>
> I'm guessing this is a bug/incompatibility with this version of GCC's
> toolchain.  If that's the case, are there any command-line tricks I might
> be
> able to use to work around it?  I need this version of GCC for C++11
> support,
> and I don't think I can currently get a newer version under this RHE
> release.(...and we are using this RHE release because it is the one our
> customers use, so we must therefore support it.)
>
> Thanks, guys.
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest