Qt 5.0 RC 1 updated examples
-
I was hoping that the examples in the threads folder in the examples would be re-written to reflect the preferred use of QThread. Perhaps once at the final release?
Additionally, and more important, there are problems in the install on Win 7 32 platform. I get errors compiling apps. Errors such as QApplication and QWidget no found? Another app builds and I get an error at launch outside of the IDE which stated Qt5Cored.dll is missing from your system.
-
Could you please make separate bug reports following "these guidelines":http://qt-project.org/wiki/ReportingBugsInQt
Thanks
-
[quote author="Eddy" date="1354951313"]Could you please make separate bug reports following "these guidelines":http://qt-project.org/wiki/ReportingBugsInQt
Thanks[/quote]
Oh OK. I wanted to be sure it was in fact a bug.
-
Thanks
Please add a link to this thread in the bug tracker and ad a link to the bugreport page here. This makes everything more accessible for everyone.
-
[quote author="astodolski" date="1354908060"]I was hoping that the examples in the threads folder in the examples would be re-written to reflect the preferred use of QThread. Perhaps once at the final release?[/quote]We're working on it. :) Hopefully they'll be in time for the Qt 5 release.
[quote]I get errors compiling apps. Errors such as QApplication and QWidget no found?[/quote]You need to add the Qt Widgets module to your project. Add this line to your .pro file:
@
QT += widgets
@[quote]Another app builds and I get an error at launch outside of the IDE which stated Qt5Cored.dll is missing from your system.[/quote]Your app needs to be able to find the DLL. Either copy the DLL into the same folder as your app, or make sure the DLL is in your computer's PATH environment variable.
Copying the DLL is the recommended method -- that's what developers do when they package their software for distribution. Assuming you used the default installation path, you can find the DLLs in C:\Qt\Qt5.0.0-rc1\5.0.0-rc1\msvc2010\bin
-
[quote]Another app builds and I get an error at launch outside of the IDE which stated Qt5Cored.dll is missing from your system.[/quote]Your app needs to be able to find the DLL. Either copy the DLL into the same folder as your app, or make sure the DLL is in your computer's PATH environment variable.
Copying the DLL is the recommended method -- that's what developers do when they package their software for distribution. Assuming you used the default installation path, you can find the DLLs in C:\Qt\Qt5.0.0-rc1\5.0.0-rc1\msvc2010\bin[/quote]
I know about packaging for distribution outside the build environment. I had previously placed the bin folder of a prior library package in my path as well as telling Windows where the library is:
QTDIR=C:\QT\4.8.4
PATH=%PATH%;%QTDIR%\binAre you suggesting that is to be updated for 5.0 RC as well? I installed separately the library and Qt creator 2.6. 5.0 RC installed almost as a complete SDK solution.
Additionally, all the examples are different for 5.0 than 4.8.4. That is, the old doesn't build on the new environment if you understand what I mean.
Thanks.
-
[quote author="Eddy" date="1354984551"]Thanks
Please add a link to this thread in the bug tracker and ad a link to the bugreport page here. This makes everything more accessible for everyone.[/quote]
Will do!
-
Qt 5 contains source-incompatible changes, so it's expected that you can't use it to build Qt 4 examples. The break in compatibility was necessary to grow Qt's capabilities. There are porting guides to help devs make the transition: http://www.kdab.com/porting-from-qt-4-to-qt-5/
You'll need Qt 5 in your path to run Qt 5 apps.
There's no need to file a bug report actually; there are no bugs here, and there are already a few reports about updating QThread examples.
-
[quote author="JKSH" date="1355070348"]Qt 5 contains source-incompatible changes, so it's expected that you can't use it to build Qt 4 examples. The break in compatibility was necessary to grow Qt's capabilities. There are porting guides to help devs make the transition: http://www.kdab.com/porting-from-qt-4-to-qt-5/
[/quote]Thanks, that's helpful. However, shouldn't there be some even basic migration notes included to support a release candidate?
[quote]
There's no need to file a bug report actually; there are no bugs here, and there are already a few reports about updating QThread examples.[/quote]Where exactly is "here"? Looking at the front end for reporting looks like there are lots. Understand I was following Eddy's suggestion. It may have been better solved on the this forum than calling it in as a bug. That's why I started the thread.
[/quote] -
[quote author="astodolski" date="1355144658"]Thanks, that's helpful. However, shouldn't there be some even basic migration notes included to support a release candidate?[/quote]Looks like there is: http://qt-project.org/doc/qt-5.0/qtdoc/portingguide.html
[quote]Where exactly is "here"? Looking at the front end for reporting looks like there are lots. Understand I was following Eddy's suggestion. It may have been better solved on the this forum than calling it in as a bug. That's why I started the thread.[/quote]Sorry for being vague; I meant "we don't have a bug on our hands here". Did the modifications to the .pro file help?