Re: [Interest] Qt and MSVC 2017
In theory the 2015 will work as MS did not change the C/C++ runtime with VS2017. This is a theory of course. -- Mike Jackson Igor Mironchik <mailto:igor.mironc...@gmail.com> April 29, 2017 at 9:06 AM Hello, In what version of Qt will be added official binaries for MSVC 2017? Thank you. ___ 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] Which "Widget" technology to use when starting a new desktop app
André Pönitz wrote: On Thu, Jan 05, 2017 at 04:03:56PM +0100, Jason H wrote: After watching the webinar "The Curse of Choice: An overview of GUI technologies in Qt?"[1] I am even more confused as to what to use for our new desktop app. Here are a few of the background details. The app will be cross platform to desktop systems, not embedded at all. The app will be displaying some "image" data from hdf5 files and performing some "real" time basic image manipulations (gamma corrections, coloring of data) on that data. The app will eventually call out to some existing libraries to perform some long running analysis/simulations. We are currently using Qt 5.6.2 due to its long term maintenance guarantees. In the past I have used QGraphics* classes to show images and perform basic zoom, save, compositing functions but the webinar makes it pretty clear NOT to use those classes any more. The webinar seems to push QML and the Qt Quick classes as the way forward for desktop apps. One of the issues that we might have with QML is the need to apply styling to those widgets, none of us are UX/Styling experts by any stretch of the imagination. I took a look at QOpenGLWidget to display/manipulate the images so that we get an accelerated canvas to use. That looked promising in combination with traditional QWidgets. I would like to hear other peoples experiences& suggestions as to what they are doing. I don't want to write the app and then have to figure out how to port it to another Qt technology in a year or so after our funding has run out. The mantra is to use QML. Definitely not true for the kind aof applications the OP describes. Anndre' After reviewing the responses and doing some more research online we decided to stick with the traditional QWidgets for our desktop app but get away from the QGraphics* classes and replace that older code with code based on QOpenGlWidget so we can get accelerated 2D rendering. Thanks all for your responses and suggestions. Mike Jackson ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Which "Widget" technology to use when starting a new desktop app
Jason H wrote: Sent: Thursday, January 05, 2017 at 11:19 AM From: "Bob Hood"<bho...@comcast.net> To: interest@qt-project.org Subject: Re: [Interest] Which "Widget" technology to use when starting a new desktop app On 1/5/2017 8:51 AM, william.croc...@analog.com wrote: On 01/05/2017 10:29 AM, Bob Hood wrote: On 1/5/2017 8:03 AM, Jason H wrote: The mantra is to use QML. I just wrote a wonderful utility using Qt 5.6.2 and Widgets for the desktop, and there's no hint of QML in it. It functions beautifully, is easily maintainable, and even has full animations. I don't think the mantra is QML. The mantra is: Look at your need, your goal, and choose the Qt technology that best fits it. If that's QML, fine. If that's Widgets, fine. Unless Qt reps step up here and support your statement (which will have ramifications for me and, I'm sure, many others), summarily stating to somebody that they should use QML as the primary tech for a new desktop app is, I think, dogmatic, at best, and continues to fuel the anxiety that Qt is pouring all the love into a QML/mobile focus. ... you mean, it isn't ? Certainly, it would seem to be the case, but if that's also an official position, then I'd appreciate a representative of Qt stepping up and saying so publicly. I would have decisions to make concerning my project's commercial license, and my product's future direction, based upon it. Well with the QtQuick Controls 2 of 5.7, I think the future is slanted to QML. Having extensively coded in both, I do prefer QML, though I still wax nostalgic over Widgets. Those layouts were amazing and I wasn't plagued with binding loops for width or height. (The implicitHeight/implicitWidth vs actual height/width vs preferred (from Widgets) is still a rough edge that needs to worked out. There's not consistency on implicits vs actual vs others (painted). QML is almost "there" in terms of it's original dream of having Designers worry about appearance while letting the Engineers be decoupled to focus on the logic. I think I'm one intermediate QtObject away from being able to do that. I've also used PyQt to do a precurosr to QML w.r.t the ease of a scripting language but being able to use Qt's widgets. QML satisfies that niche, and is sufficiently supported. Does the upcoming Qt 5.8 solve any of these issues? Do you find the "Built in" styles acceptable for applications or do you end up bringing in a UX engineer to style the components? Thanks Mike Jackson ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Which "Widget" technology to use when starting a new desktop app
After watching the webinar "The Curse of Choice: An overview of GUI technologies in Qt?"[1] I am even more confused as to what to use for our new desktop app. Here are a few of the background details. The app will be cross platform to desktop systems, not embedded at all. The app will be displaying some "image" data from hdf5 files and performing some "real" time basic image manipulations (gamma corrections, coloring of data) on that data. The app will eventually call out to some existing libraries to perform some long running analysis/simulations. We are currently using Qt 5.6.2 due to its long term maintenance guarantees. In the past I have used QGraphics* classes to show images and perform basic zoom, save, compositing functions but the webinar makes it pretty clear NOT to use those classes any more. The webinar seems to push QML and the Qt Quick classes as the way forward for desktop apps. One of the issues that we might have with QML is the need to apply styling to those widgets, none of us are UX/Styling experts by any stretch of the imagination. I took a look at QOpenGLWidget to display/manipulate the images so that we get an accelerated canvas to use. That looked promising in combination with traditional QWidgets. I would like to hear other peoples experiences & suggestions as to what they are doing. I don't want to write the app and then have to figure out how to port it to another Qt technology in a year or so after our funding has run out. Thanks for any/all comments. [1] https://cdn2.hubspot.net/hubfs/149513/QtWS16%20Webinars/The%20Curse%20of%20Choice-%20An%20overview%20of%20GUI%20technologies%20in%20Qt.mp4?utm_campaign=QtWS16+Webinars_source=hs_automation_medium=email_content=38349957&_hsenc=p2ANqtz-_OQYaCO6wb88VHD74o0lNXfMmleVTmkD0xK0R42_e8YaWPrimIoWHLQlM0VzYmf-U_A4EAMiWaVH9__M0EMX190Ih57w&_hsmi=38349957 -- Mike Jackson [mike.jack...@bluequartz.net] ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] VS 2017 Precompiled Binaries
Is there a road map for when Qt 5.6.x precompiled binaries would be available for VS2017 after it is release? Are we looking at next spring, summer or not until 2018? We are just trying to gauge our plans to move forward from VS2013 tooling and what that time frame might be. Thank You. -- Mike Jackson [mike.jack...@bluequartz.net] ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Faster Qt app build
You are comparing a Quad Core i5 to a Dual Core i5. So the Quad should be faster than the dual core. If you really want to compare them a bit better, on the Quad core tell JOM to only use 2 threads, and on the Dual core, if you are using "make" as your build system, ensure you are sending the -j2 or -j argument to make otherwise make will only build using a single process/cpu/core. The SSD comparison is probably a wash. You do not state what year the MacBook Pro is so I don't know if the SSD is SATA or PCIe based. Either way the MacBook Pro SSD should be as fast as the 840 EVO drive. -- Mike Jackson [mike.jack...@bluequartz.net] Nuno Santos wrote: For Mac/iOS applications Qt uses clang (sorry for the misunderstanding) For Android build Qt uses GCC My main dev machine is a Macbook 13 Retina i5 2.5 dual core with a stock SSD drive The Windows machine I refer has a i5 2.5 quad-core with a Samsung 840 PRO SSD drive I bought the 840 PRO because it is known for it’s incredible performance. Compiling the exact same program on the windows machine is at least twice fast as on the mac machine. MSVC vs CLANG. Do you guys think this is only due to the drive? Isn’t it taking advantage of the extra cores on Windows? Also, on mac, it doesn’t seem to be taking advantage of the multiple cores. Question: passing -jX argument does anything or not? Regards Nuno On 21 Oct 2016, at 19:06, Mike Jackson<imikejack...@gmail.com> wrote: Hmm, That does not seem correct? I have never seen a Windows build of anything go faster on Windows than on Linux or macOS give those are running on the exact same hardware. And when you state "GCC" builds are you using GCC from MacPorts, Homebrew or somewhere else? because Apple has not shipped GCC (at least a recent version) in a long time. -- Mike Jackson [mike.jack...@bluequartz.net] Nuno Santos wrote: Hi, On Windows, building a Qt app is blazing fast. It seems that jom takes the cpu cores to it’s maximum power. On Mac the GCC builds are really slow and passing the -jX argument doesn’t seem to make any difference. Is there a way to speed up builds? My projects have a lot of files now and compiling a build can take around 5 minutes on a i5 2.5 dual core CPU. Any tips? Thanks! Regards, Nuno Santos Founder / CEO / CTO www.imaginando.pt +351 91 621 69 62 ___ 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] Faster Qt app build
Hmm, That does not seem correct? I have never seen a Windows build of anything go faster on Windows than on Linux or macOS give those are running on the exact same hardware. And when you state "GCC" builds are you using GCC from MacPorts, Homebrew or somewhere else? because Apple has not shipped GCC (at least a recent version) in a long time. -- Mike Jackson [mike.jack...@bluequartz.net] Nuno Santos wrote: Hi, On Windows, building a Qt app is blazing fast. It seems that jom takes the cpu cores to it’s maximum power. On Mac the GCC builds are really slow and passing the -jX argument doesn’t seem to make any difference. Is there a way to speed up builds? My projects have a lot of files now and compiling a build can take around 5 minutes on a i5 2.5 dual core CPU. Any tips? Thanks! Regards, Nuno Santos Founder / CEO / CTO www.imaginando.pt +351 91 621 69 62 ___ 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] Memory Leak when instantiating QWidget based windows
Does QtCreator come with suppression files for Qt5? I ran valgrind "by hand" on the command line and while I was able to actually find some of our leaks (yeah Valgrind..) I had to wade through 20,000 Qt leaks to find my leaks. Would be nice to filter those out somehow. -- Michael A. Jackson BlueQuartz Software, LLC [e]: mike.jack...@bluequartz.net Andy wrote: I too am using valgrind-3.11.0 (on Mac OS X 10.10.5), but I've never seen that in the Application Output window. I don't usually look there when using Memcheck. Is there anything at all in the Memcheck panel? Sometimes if your application crashes when using valgrind there is useful info there. Are you running on the debug or release version of your application? Or could it be related this?: https://bugreports.qt.io/browse/QTCREATORBUG-10163 --- Andy Maloney // https://asmaloney.com twitter ~ @asmaloney <https://twitter.com/asmaloney> On Thu, Sep 8, 2016 at 9:37 AM, Edward Sutton <edward.sut...@subsite.com <mailto:edward.sut...@subsite.com>> wrote: On Sep 8, 2016, at 8:18 AM, Andy <asmalo...@gmail.com <mailto:asmalo...@gmail.com>> wrote: Ah - sorry. I can see how that's unclear (pre-coffee email). I meant the Debug section on the left-hand side of the main window: Welcome, Edit, Design, Debug,... >0Then the bottom pane pops up below the editor and has a dropdown at the top-left - Debugger, Clang Static Analyzer, Memcheck,… Found it! Thank you. 3.1 - Selected Memcheck in the drop-down at lower-left main edit window 3.2 - Press green play button to the *right* of the Memcheck drop-down Unfortunately it did not run for me. Application Output reported: Analyzing finished. ** Unknown error ** Using valgrind-3.11.0 -Ed --- Andy Maloney // https://asmaloney.com <https://urldefense.proofpoint.com/v2/url?u=https-3A__asmaloney.com=DQMFaQ=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=6HvvOEegoKg93yk53OwceqGbTwWp3iEoQVNaZSRUkTM=bdAVC6-LbUYQycT9JFc91oa7YAOneh6j9LUG3pCqRmU=> twitter ~ @asmaloney <https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_asmaloney=DQMFaQ=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=6HvvOEegoKg93yk53OwceqGbTwWp3iEoQVNaZSRUkTM=DErQyEPdZ-8bI_rhS90_nSKoH2XfmOa5EdwR_Dzu7pU=> On Thu, Sep 8, 2016 at 9:13 AM, Edward Sutton <edward.sut...@subsite.com <mailto:edward.sut...@subsite.com>> wrote: Hi Andy, Could you please elaborate on step #3? I cannot find a Memcheck option under Preferences > Debugger. Thanks for the tips! -Ed Qt Creator 4.01 with Qt 5.6.1 On Sep 8, 2016, at 7:56 AM, Andy <asmalo...@gmail.com <mailto:asmalo...@gmail.com>> wrote: Mike: If you haven't already tried it, using Qt Creator in combination with valgrind works really well to track these kinds of things down. The basics: 1) install valgrind (I used homebrew) 2) point Qt Creator at it in the prefs (Analyzer->Valgrind) 3) Click the Debug tab, set the tool to Memcheck, and click the start button (little green arrow) After it runs your application (slowly), it will spit out a bunch of info about memory leaks that make it pretty easy to track down the problems. --- Andy Maloney // https://asmaloney.com <https://urldefense.proofpoint.com/v2/url?u=https-3A__asmaloney.com=DQMFaQ=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=c5VUb3aKymRQx0ih8A7yljotGOJbYdQ2iJ1PDgaS508=r8u8ZRFO-Qd4fneoIZohXBUjpcA_h7vjbk3y92UEclg=> twitter ~ @asmaloney <https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_asmaloney=DQMFaQ=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=c5VUb3aKymRQx0ih8A7yljotGOJbYdQ2iJ1PDgaS508=o5ozT95AtJLPuZ0_E6csAPsjuGwFJwioJcJtEJxKwNk=> On Thu, Sep 8, 2016 at 6:55 AM, Konstantin Shegunov <kshegu...@gmail.com <mailto:kshegu...@gmail.com>> wrote: On Wed, Sep 7, 2016 at 11:23 PM, Mike Jackson <imikejack...@gmail.com <mailto:imikejack...@gmail.com>> wrote: We monitor the memory use before and after the loop using OS X's Activity monitor. At the end of the loop there is more memory being used than before the loop, by about 2~3MB worth. This isn't reliable. Consider the following C++ only code: intmain(intargc,char**argv) { struct X; X * x = nullptr; struct X { int data[1024]; }; for (qint32 i = 0; i < 10; i++)
[Interest] Memory Leak when instantiating QWidget based windows
We are attempting to track down a memory leak that we _think_ we have. We have reduced our code to the point where all we do is invoke a new QWidget instance, show() it, hide() it and then delete it. We do this in a loop 100 times. We monitor the memory use before and after the loop using OS X's Activity monitor. At the end of the loop there is more memory being used than before the loop, by about 2~3MB worth. My question is: Is this normal for a Qt Application to retain some memory for each QWidget through global variables and such? Is it something in OS X 10.10? Thanks to anyone who can shed a little light on this for us. Oh. This is with Qt 5.6.1-1 on OS X 10.10.5. We also notice this on Windows 10 with the same version of Qt. Thanks -- Michael A. Jackson BlueQuartz Software, LLC [e]: mike.jack...@bluequartz.net ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Build Qt for command line only
Thiago Macieira wrote: On quinta-feira, 4 de agosto de 2016 00:41:59 PDT Scott Aron Bloom wrote: Im playing with the new Bash/WSL for windows 10, and want to create a Qt package. There is no X available, its only CLI based, what configuration options are the best for this setup? The XCB plugin is optional. Just don't build it. You'll still have offscreen. Or if you really want no GUI, configure -no-gui. Actually there is a blog post and code (on git hub) of someone running the full Unity desktop under the "Linux on Windows" thing. http://www.omgubuntu.co.uk/2016/07/someone-just-installed-unity-windows so maybe you _could_ do the whole Qt package? -- Michael A. Jackson BlueQuartz Software, LLC [e]: mike.jack...@bluequartz.net ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt LGPLv3 and Qt LGPL Exception
-- Michael A. Jackson 400 S. Pioneer Blvd Owner, President Springboro, Ohio 45066 BlueQuartz Software, LLC EMail: mike.jack...@bluequartz.net Voice: 937-806-1165Web: http://www.bluequartz.net Fax: 937-746-0783 Konstantin Tokarev wrote: 28.06.2016, 21:53, "André Somers": Op 28/06/2016 om 11:09 schreef Jean-Michaël Celerier: On Tue, Jun 28, 2016 at 10:39 AM, Benjamin TERRIER wrote: The technical reason is that when including Qt headers in proprietary software, your final binary contains compiled forms of Qt code (e.g inline function or template classes). From the LGPLv3 : 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: So... How exactly do you use any of the Qt containers using the LGPL3 libraries? Are they implemented in 10 or less lines of template code? Accordingly to following points (a) and (b), similarly to LGPL 2 terms. So is there some sort of test or sanity checking "bot" that guarantees that those functions are 10 lines or less? I am staking my project on that fact and I would want some sort of absolute guarantee that those functions are indeed 10 lines or less. It think the question is valid, and reading the question, you can see that he read that passage. André * a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. * b) Accompany the object code with a copy of the GNU GPL and this license document. Best Jean-Michaël Celerier ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Deploying QtWebEngine on Linux with Qt 5.6.0
I am running Ubuntu 14.04 and Qt 5.6 downloaded from downloads.qt.io. I have built my application and the application runs but when I try to invoke the QWebEngine classes I just get an empty widget and the following error in the terminal: /opt/DREAM3D_SDK/Qt5.6.0/5.6/gcc_64/libexec/QtWebEngineProcess: error while loading shared libraries: libQt5WebEngineCore.so.5: cannot open shared object file: No such file or directory The same thing happens when I package my application. I have tried all sorts of ways of configuring the qt.conf directory, moving libs into other folders, renaming executables but nothing seems to work. Has anyone else run into a situation like this? Can anyone make recommendations on how to package QWebEngine? I have copied over all the resources and translations so that is not the issue. Thanks. -- Mike Jackson ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QUndoStack
Yes, we have already executed what constitutes the command by the time we push it onto the stack. Maybe we are not using QUndoStack correctly then? we should be creating the command that _should_ get executed, place it on the stack, which will then execute the command. Still seems odd but we can look at doing that. -- Mike Jackson [mike.jack...@bluequartz.net] Elvis Stansvik wrote: 2016-06-17 18:18 GMT+02:00 Mike Jackson<imikejack...@gmail.com>: We are using the QUndoStack and when we "push()" onto the stack the actual QUndoCommand is being executed. In the documentation is seems as though I could set the "id" of the QUndoCommand to -1 and NOT have it executed but after looking more close at the docs and the actual source code the QUndoCommand will definitely be executed when pushed onto the stack. This behavior does not make sense to me and I am probably missing something simple about how to use the QUndoStack. Could someone offer an explanation of why my command gets executed? And also how do I get my undocommand on the stack **without** executing the command? I haven't used QUndoStack much myself, but to me what you describe does not make sense. An undo stack is supposed to represent what has happened (this history), so why should a command not be executed when pushed? Is it that you have already executed it manually? Either way, I think a command will always be executed when pushed, so that's what you need to work with. The -1 id thing seems to be just for controlling the merging behavior. Elvis Thanks -- Michael A. Jackson BlueQuartz Software, LLC [e]: mike.jack...@bluequartz.net ___ 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] QUndoStack
We are using the QUndoStack and when we "push()" onto the stack the actual QUndoCommand is being executed. In the documentation is seems as though I could set the "id" of the QUndoCommand to -1 and NOT have it executed but after looking more close at the docs and the actual source code the QUndoCommand will definitely be executed when pushed onto the stack. This behavior does not make sense to me and I am probably missing something simple about how to use the QUndoStack. Could someone offer an explanation of why my command gets executed? And also how do I get my undocommand on the stack **without** executing the command? Thanks -- Michael A. Jackson BlueQuartz Software, LLC [e]: mike.jack...@bluequartz.net ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QSplitterHandle is Rainbow Colored
We are having an issue where any QSplitter we insert into our program, the QSplitterHandle has a rainbow color gradient across the handle. It is clearly not a bug in Qt 5.6.0 because the example programs that we build from the 5.6.0 distribution are all correct. The only thing I can think of is we are accidentally setting a CSS value on either QSplitterHandle, or QWidget or something like that. I am looking for advice on where to start looking in our code? What types of things can effect the look of the QSplitterHandle. Thanks -- Michael A. Jackson BlueQuartz Software, LLC [e]: mike.jack...@bluequartz.net ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Qt 5.6.0 Offline Installer in "Headless" or "Automated" mode
Is there a way to launch the Qt 5.6.0 offline installer in such a way so that the gui either does not launch or all the options that I need are selected/deselected/Filled in and the installer automatically installs Qt where I want it installed? Our own SDK depends on Qt and I would love to be able to just have our developers use a single installer instead of installing our SDK, then using the Qt offline installer after that. Thanks Mike Jackson <https://www.postbox-inc.com/?utm_source=email_medium=siglink_campaign=reach> ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Displaying Help from QHelpEngine through QWebEngine
I am attempting to use the QHelp* classes to allow our users to search our help files (html based) using the same mechanisms as those used with QAssistant. So far I have hacked together the major pieces and hooked everything up. I am able to manually generate a .qhc file from all of our html and image sources. I got so far as to enter a search string and have the relevant documents appear in the results widget. Now when I click on a link I would like to actually display the help. Currently we use QWebEngineView on Qt 5.5.1 because QWebKit was being deprecated. I am pretty sure the issue as to why nothing is displayed is because I get a URL like the following: "qthelp://bluequartzsoftware.net.dream3d.1.0/DREAM3D/addorientationnoise.html" and QWebEngine probably has no idea what to do with that URL scheme. I have looked around the internet using Google and while other people are asking this same question there are no actual answers. About the only possibility seems to get the file contents from the HelpEngine along with any CSS and Image assets, write all of those to a temp location on the filesystem, then load the URL from the temp location? There must be an easier way that I am just missing. Any help is greatly appreciated. -- Mike Jackson BlueQuartz Software ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Displaying Help from QHelpEngine through QWebEngine
I went looking through the QAssistant sources but could not really follow what was going on. The best that I could tell is maybe there is a custom Network handler that qthelp:// uses. Kind of like a super lightweight "server" that QWebKit talks to when requesting URLs that are stored in the .qhc file? We were going to eventually move to Qt 5.6 when it is officially released. Just seems odd that Qt has you package up your files into a SQLite data base but then offers no convenient way of actually displaying that content to the user. Odd. For now what I think we are going to do is to ship both the loose html files and the .qhc file. We can use the .qhc for full text searching but use the loose .html files for display. Seems to work, just did not really want to ship 2x sets of the docs. Thanks for the heads up about Qt 5.6 Mike Jackson Allan Sandfeld Jensen <mailto:k...@carewolf.com> February 9, 2016 at 7:00 PMvia Postbox <https://www.postbox-inc.com/?utm_source=email_medium=sumlink_campaign=reach> What you need is the QWebEngineUrlSchemeHandler which was added in Qt 5.6. It adds the ability to add custom URL schemes to QtWebEngine. Best regards `Allan Jensen Mike Jackson <mailto:imikejack...@gmail.com> February 9, 2016 at 5:28 PMvia Postbox <https://www.postbox-inc.com/?utm_source=email_medium=sumlink_campaign=reach> I am attempting to use the QHelp* classes to allow our users to search our help files (html based) using the same mechanisms as those used with QAssistant. So far I have hacked together the major pieces and hooked everything up. I am able to manually generate a .qhc file from all of our html and image sources. I got so far as to enter a search string and have the relevant documents appear in the results widget. Now when I click on a link I would like to actually display the help. Currently we use QWebEngineView on Qt 5.5.1 because QWebKit was being deprecated. I am pretty sure the issue as to why nothing is displayed is because I get a URL like the following: "qthelp://bluequartzsoftware.net.dream3d.1.0/DREAM3D/addorientationnoise.html" and QWebEngine probably has no idea what to do with that URL scheme. I have looked around the internet using Google and while other people are asking this same question there are no actual answers. About the only possibility seems to get the file contents from the HelpEngine along with any CSS and Image assets, write all of those to a temp location on the filesystem, then load the URL from the temp location? There must be an easier way that I am just missing. Any help is greatly appreciated. -- Michael A. Jackson 400 S. Pioneer Blvd Owner, President Springboro, Ohio 45066 BlueQuartz Software, LLC EMail: mike.jack...@bluequartz.net Voice: 937-806-1165Web: http://www.bluequartz.net Fax: 937-746-0783<https://www.postbox-inc.com/?utm_source=email_medium=siglink_campaign=reach> ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols
> On Jan 20, 2016, at 4:26 PM, Thiago Macieira <thiago.macie...@intel.com> > wrote: > > On Wednesday 20 January 2016 09:50:51 Nils Jeisecke via Interest wrote: >> On Tue, Jan 19, 2016 at 5:29 PM, Thiago Macieira >> >> <thiago.macie...@intel.com> wrote: >>> Yes. Debug symbols in the pre-compiled builds do not work. >> >> Is this a known issue or shall I create a bug report? > > It's a known and, AFAIU, unfixable issue. That's just how the debug format > stores the information. > > I think it should show line numbers, but it can't find the source code > because > you don't have the source code at the same place as the debugging information > expects it to be. > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Software Architect - Intel Open Source Technology Center Not that I have tried this BUT in theory if you knew the exact paths that Digia used to build the Qt distribution and set up your sources in the same paths then the debug symbols might start working. At least that is the first thing I would try. — Mike Jackson ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Qt 5.5.1 qmath.h redefines math.h macros with VS2013
We just switched up to Qt 5.5.1 for our project and now we are getting the following warnings through out our code base: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(1303) : warning C4005: 'M_2_SQRTPI' : macro redefinition C:\DREAM3D_SDK\Qt5.5.1\5.5\msvc2013_64\include\QtCore\qmath.h(176) : see previous definition of ‘M_2_SQRTPI' Has anyone ever seen this and if so, what is the correct solution? Thanks Mike Jackson ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QWebEngineView not loading pages from history
Ping? Mike Jackson. > On Dec 18, 2015, at 2:54 PM, Mike Jackson <imikejack...@gmail.com> wrote: > > We have tried a bunch more ideas and none seem to work. We have tried the > following: > m_WebView->page()->triggerAction(QWebEnginePage::Back); > m_WebView->page()->history()->goToItem( > m_WebView->page()->history()->itemAt(1)); > m_WebView->page()->triggerAction(QWebEnginePage::Back); > > > None of these work. The documentation for QWebEngineView _says_ it should > work. Does anyone have any ideas? > > Thanks > Mike Jackson > >> On Dec 16, 2015, at 3:13 PM, Mike Jackson <imikejack...@gmail.com >> <mailto:imikejack...@gmail.com>> wrote: >> >> I have an small app that uses QWebEngineView to display web pages. We have >> tried hooking up a pair of QPushButtons to invoke the forward and back in >> the QWebEngineHistory but neither seem to work. The QActions are getting >> triggered and our code is correctly calling them but the QWebEngineView does >> not actually load the previous page from its history. We have printed out >> the history each time the button is clicked and the history is correctly >> navigated. I am sure we have missed something simple that needs to be >> performed. Maybe some sort of setup of the QWebEngineView or something? I am >> pasting in our simple application hoping that someone can spot the error. >> Thanks >> Mike Jackson >> >> ———main.cpp— >> #include >> #include "WebTest_UI.h" >> int main(int argc, char* argv[]) >> { >> >> QApplication app(argc, argv); >> >> QCoreApplication::setOrganizationDomain("Foo"); >> QCoreApplication::setOrganizationName("Bar"); >> QCoreApplication::setApplicationName("WebTest_UI"); >> >> #if defined (Q_OS_MAC) >> app.setQuitOnLastWindowClosed( true ); >> #endif >> >> QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); >> >> WebTest_UI* helper = WebTest_UI::Instance(); >> helper->show(); >> >> return app.exec(); >> } >> >> ——WebTest_UI.h— >> #ifndef _WebTest_UI_H_ >> #define _WebTest_UI_H_ >> #include >> #include >> #include >> class WebTest_UI : public QWidget >> { >>Q_OBJECT >> public: >>virtual ~WebTest_UI(); >>static WebTest_UI* Instance(); >> protected: >>WebTest_UI(); >> protected slots: >>void goBack(bool b); >> private: >>static WebTest_UI* self; >>QWebEngineView* m_WebView; >>QPushButton* forwardBtn; >>QPushButton* backBtn; >>WebTest_UI(const WebTest_UI&); // Copy Constructor Not Implemented >>void operator=(const WebTest_UI&); // Operator '=' Not Implemented >> }; >> #endif /* _WebTest_UI_H */ >> >> ——WebTest_UI.cpp— >> #include "WebTest_UI.h" >> #include >> #include >> #include >> #include >> #include >> #include >> // Include the MOC generated CPP file which has all the QMetaObject >> methods/data >> #include "moc_WebTest_UI.cpp" >> >> WebTest_UI* WebTest_UI::self = NULL; >> // >> - >> WebTest_UI::WebTest_UI() >> { >> Q_ASSERT_X(!self, "WebTest_UI", "There should be only one WebTest_UI >> object"); >> >> WebTest_UI::self = this; >> >> // Create the web view >> m_WebView = new QWebEngineView(NULL); >> m_WebView->setObjectName(QStringLiteral("m_WebView")); >> QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding); >> sizePolicy1.setHorizontalStretch(0); >> sizePolicy1.setVerticalStretch(0); >> sizePolicy1.setHeightForWidth(m_WebView->sizePolicy().hasHeightForWidth()); >> m_WebView->setSizePolicy(sizePolicy1); >> m_WebView->setUrl(QUrl(QStringLiteral("about:blank"))); >> QGridLayout* gridLayout = new QGridLayout(this); >> gridLayout->addWidget(m_WebView, 2, 0, 1, 2); >> m_WebView->load(QUrl("http://download.qt.io <http://download.qt.io/>")); >> m_WebView->show(); >> >> backBtn = new QPushButton("Back"); >> gridLayout->addWidget(backBtn, 1, 0, 1, 1); >> connect(backBtn, SIGNAL(clicked(bool)), >> this, SLOT(goBack(bool))); >> >> forwardBtn = new QPushButton("Forward"); >> gridLayout->addWidget(forwa
Re: [Interest] QWebEngineView not loading pages from history
We have tried a bunch more ideas and none seem to work. We have tried the following: m_WebView->page()->triggerAction(QWebEnginePage::Back); m_WebView->page()->history()->goToItem( m_WebView->page()->history()->itemAt(1)); m_WebView->page()->triggerAction(QWebEnginePage::Back); None of these work. The documentation for QWebEngineView _says_ it should work. Does anyone have any ideas? Thanks Mike Jackson > On Dec 16, 2015, at 3:13 PM, Mike Jackson <imikejack...@gmail.com> wrote: > > I have an small app that uses QWebEngineView to display web pages. We have > tried hooking up a pair of QPushButtons to invoke the forward and back in the > QWebEngineHistory but neither seem to work. The QActions are getting > triggered and our code is correctly calling them but the QWebEngineView does > not actually load the previous page from its history. We have printed out the > history each time the button is clicked and the history is correctly > navigated. I am sure we have missed something simple that needs to be > performed. Maybe some sort of setup of the QWebEngineView or something? I am > pasting in our simple application hoping that someone can spot the error. > Thanks > Mike Jackson > > ———main.cpp— > #include > #include "WebTest_UI.h" > int main(int argc, char* argv[]) > { > > QApplication app(argc, argv); > > QCoreApplication::setOrganizationDomain("Foo"); > QCoreApplication::setOrganizationName("Bar"); > QCoreApplication::setApplicationName("WebTest_UI"); > > #if defined (Q_OS_MAC) > app.setQuitOnLastWindowClosed( true ); > #endif > > QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); > > WebTest_UI* helper = WebTest_UI::Instance(); > helper->show(); > > return app.exec(); > } > > ——WebTest_UI.h— > #ifndef _WebTest_UI_H_ > #define _WebTest_UI_H_ > #include > #include > #include > class WebTest_UI : public QWidget > { >Q_OBJECT > public: >virtual ~WebTest_UI(); >static WebTest_UI* Instance(); > protected: >WebTest_UI(); > protected slots: >void goBack(bool b); > private: >static WebTest_UI* self; >QWebEngineView* m_WebView; >QPushButton* forwardBtn; >QPushButton* backBtn; >WebTest_UI(const WebTest_UI&); // Copy Constructor Not Implemented >void operator=(const WebTest_UI&); // Operator '=' Not Implemented > }; > #endif /* _WebTest_UI_H */ > > ——WebTest_UI.cpp— > #include "WebTest_UI.h" > #include > #include > #include > #include > #include > #include > // Include the MOC generated CPP file which has all the QMetaObject > methods/data > #include "moc_WebTest_UI.cpp" > > WebTest_UI* WebTest_UI::self = NULL; > // > - > WebTest_UI::WebTest_UI() > { > Q_ASSERT_X(!self, "WebTest_UI", "There should be only one WebTest_UI > object"); > > WebTest_UI::self = this; > > // Create the web view > m_WebView = new QWebEngineView(NULL); > m_WebView->setObjectName(QStringLiteral("m_WebView")); > QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding); > sizePolicy1.setHorizontalStretch(0); > sizePolicy1.setVerticalStretch(0); > sizePolicy1.setHeightForWidth(m_WebView->sizePolicy().hasHeightForWidth()); > m_WebView->setSizePolicy(sizePolicy1); > m_WebView->setUrl(QUrl(QStringLiteral("about:blank"))); > QGridLayout* gridLayout = new QGridLayout(this); > gridLayout->addWidget(m_WebView, 2, 0, 1, 2); > m_WebView->load(QUrl("http://download.qt.io;)); > m_WebView->show(); > > backBtn = new QPushButton("Back"); > gridLayout->addWidget(backBtn, 1, 0, 1, 1); > connect(backBtn, SIGNAL(clicked(bool)), > this, SLOT(goBack(bool))); > > forwardBtn = new QPushButton("Forward"); > gridLayout->addWidget(forwardBtn, 1,1,1,1); > > self->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); > > #if defined (Q_OS_MAC) > QAction* closeAction = new QAction(this); > closeAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_W)); > connect(closeAction, SIGNAL(triggered()), this, SLOT(close())); > addAction(closeAction); > #endif > } > // > - > WebTest_UI::~WebTest_UI() {} > // > - > WebTest_UI* WebTest_UI::Instance() > { > if (self == NULL) > { >self
Re: [Interest] QML and ScrollView
Thanks for the tips. I have tried all of them and nothing is working. I will try to explain what I want and maybe someone can tell me what I am doing wrong. I want a scrollable grid layout. In the grid layout are pairs of “Label” and “Text Field” not unlike the Form Layout for a normal desktop app. I want the “TextField” to extend itself to the width of the GridLayout. And I want the grid layout to extend itself to the width of the ScrollView. The ScrollView should extend itself to the width of the QQuickWidget that i am using. My first foray into QML isn’t going so well. — Mike Jackson > On Dec 3, 2015, at 11:45 PM, Jason H <jh...@gmx.com> wrote: > > There are two sizes with the Scrolly things. > The scroll item, whose extents are set via anchors or height/width,and the > contentHeight and contentWidth, which are the virtual area, in this case your > grid layout. > Give your Grid an id, and set the scrollview contentWidth/contentHeight to > the width and height of the > Also, usually you need a height AND width set, if the anchors are not set. > > Sent: Thursday, December 03, 2015 at 7:07 PM > From: "Mike Jackson" <imikejack...@gmail.com> > To: "Qt Project" <interest@qt-project.org> > Subject: [Interest] QML and ScrollView > I am trying to use a ScrollView in a QQuickWidget but the layout does not > seem to be honoring what I am wanting. I have a bunch of “Label/TextField” > pairs to the point where there are so many that I need them inside a > scrollview. the issue is that if I do that then the TextFields which are set > to fill in the rest of the row (inside a GridLayout) does not fill the row. > If I remove the ScrollView then the TextField fills the remainder of the row? >Since this is my first foray into QML I am sure I am missing something > obvious. this is with Qt 5.5.1 on OS X. I’ll post my > — > Mike Jackson [imikejack...@gmail.com ] > > import QtQuick 2.4 > import QtQuick.Controls 1.4 > import QtQuick.Layouts 1.1 > import LeroyJsonStorage 1.0 > > Rectangle { > > // Make the background a bit darker > color: "Light Gray" > border.color: "Black" > > ScrollView > { > anchors.fill: parent > height: 800 > > GridLayout { > columns: 2 > anchors.fill: parent > Label { > text: "Foo" > Layout.row: 0 > } > TextField { > text: "Bar" > Layout.row: 0 > Layout.column: 1 > Layout.fillWidth: true > } > > Label { > text: "Foo" > Layout.row: 1 > } > TextField { > text: "Bar" > Layout.row: 1 > } > > Label { > text: "Foo" > Layout.row: 2 > } > TextField { > text: "Bar" > Layout.row: 2 > } > > Label { > text: "Foo" > Layout.row: 3 > } > TextField { > text: "Bar" > Layout.row: 3 > } > > Label { > text: "Foo" > Layout.row: 4 > } > TextField { > text: "Bar" > Layout.row: 4 > } > > Label { > text: "Foo" > Layout.row: 5 > } > TextField { > text: "Bar" > Layout.row: 5 > } > > Label { > text: "Foo" > Layout.row: 6 > } > TextField { > text: "Bar" > Layout.row: 6 > } > > Label { > text: "Foo" > Layout.row: 7 > } > TextField { > text: "Bar" > Layout.row: 7 > } > > > } > } > } > > > ___ Interest mailing list > Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest > <http://lists.qt-project.org/mailman/listinfo/interest> ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QML undefined Reference if object is in a TabView
I am working on a QML application and after the last issues were solved I am attempting to refactor the code so that common sets of QML codes are in their own .qml files. The issue that I am having is that now that I am using TabView{} and associated “Tab” widgets, when I go to reference a TextField that is buried down in one of the tabs I get the “ReferenceError: minZThickness_TF is not defined” error. If I move that QML object as a child of the root QML object then things work, but obviously the display is now busted. Has anyone else seen anything like this before? I’ll attach my QML file to the end for the curious. — Mike Jackson import QtQuick 2.4 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.2 Rectangle { id: rectangle width: 800 // Make the background a bit lighter color: "Light Gray" border.color: "Black" objectName: "RootObject" //--- // These Variables are related to the Small IN100 Campaign. // --- Item { id: experimentParams property real minZThickness: 4.0 property int targetGrainCount: 0 function toJSON() { experimentParams.minZThickness = parseFloat(minZThickness_TF.text) experimentParams.targetGrainCount = parseInt(targetGrainCount_TF.text) return '"Small IN100" : {' + '"minZThickness": ' + experimentParams.minZThickness + ',' + '"targetGrainCount": ' + experimentParams.targetGrainCount + '}'; } } TabView { id: tabView_ anchors.right: parent.right anchors.bottom: parent.bottom anchors.top: parent.top anchors.left: parent.left antialiasing: true Tab { id: experimentTab title: "Grain Count Parameters" anchors.topMargin: 12 ScrollView { id: scrollView_ anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom GridLayout { id:gridLayout0_ columns: 2 columnSpacing: 5 rowSpacing: 10 property int scrollBarSpacing: 20 width: scrollView_.width - scrollBarSpacing flow: GridLayout.LeftToRight Text { text: qsTr("Target Grain Count:") } TextField { id: targetGrainCount_TF Layout.fillWidth: true text: experimentParams.targetGrainCount onEditingFinished: experimentParams.targetGrainCount = targetGrainCount_TF.text } Text { text: qsTr("Min. Z Thickness:") } TextField { id: minZThickness_TF Layout.fillWidth: true text: experimentParams.minZThickness onEditingFinished: experimentParams.minZThickness = minZThickness_TF.text } } } } } // This function creates the JSON that will be transmitted through out the network // to gather data from the instruments and pass that data to the Analysis Engine // It should include all the elements from the "Item" above. function makeJson() { return experimentParams.toJSON(); } } ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QML and ScrollView
THANK YOU!!!. With a few tweaks this works exactly as I wanted. I will study the code to fully understand what is going on. Thanks to everyone who gave me hints and possible solutions. — Mike Jackson > On Dec 4, 2015, at 12:41 PM, Jérôme Godbout <jer...@bodycad.com> wrote: > > What you may want to try is something similar to this, note the parent of > GridLayout is a flickarable item and not the scrollview, this flickerable > does'nt have any size it take the children size, so you need to bind to > scrollview sizing to resize the width properly: > > Item > { > id: component > width: 800 > height: 600 > > ScrollView > { > id: scrollView_ > anchors.top: parent.top > anchors.left: parent.left > anchors.right: parent.right > height: 200 > > GridLayout > { > columns: 2 > columnSpacing: 5 > rowSpacing: 10 > property int scrollBarSpacing: 20 > width: scrollView_.width - scrollBarSpacing > flow: GridLayout.LeftToRight > > Text { text: qsTr("Repos path: ") } > TextField > { > Layout.fillWidth: true > text: 'fill me...' > } > Text { text: qsTr("Repos path: ") } > TextField > { > Layout.fillWidth: true > text: 'fill me...' > } > Text { text: qsTr("Repos path: ") } > TextField > { > Layout.fillWidth: true > text: 'fill me...' > } > Text { text: qsTr("Repos path: ") } > TextField > { > Layout.fillWidth: true > text: 'fill me...' > } > Text { text: qsTr("Repos path: ") } > TextField > { > Layout.fillWidth: true > text: 'fill me...' > } > Text { text: qsTr("Repos path: ") } > TextField > { > Layout.fillWidth: true > text: 'fill me...' > } > Text { text: qsTr("Repos path: ") } > TextField > { > Layout.fillWidth: true > text: 'fill me...' > } > Text { text: qsTr("Repos path: ") } > TextField > { > Layout.fillWidth: true > text: 'fill me...' > } > } > } > } > > > Hope this help understand what is going on for you ;-) > > On Fri, Dec 4, 2015 at 11:24 AM, Mike Jackson <imikejack...@gmail.com > <mailto:imikejack...@gmail.com>> wrote: > Thanks for the tips. I have tried all of them and nothing is working. I will > try to explain what I want and maybe someone can tell me what I am doing > wrong. > > I want a scrollable grid layout. In the grid layout are pairs of “Label” and > “Text Field” not unlike the Form Layout for a normal desktop app. I want the > “TextField” to extend itself to the width of the GridLayout. And I want the > grid layout to extend itself to the width of the ScrollView. The ScrollView > should extend itself to the width of the QQuickWidget that i am using. > > My first foray into QML isn’t going so well. > > — > Mike Jackson >> On Dec 3, 2015, at 11:45 PM, Jason H <jh...@gmx.com <mailto:jh...@gmx.com>> >> wrote: >> >> There are two sizes with the Scrolly things. >> The scroll item, whose extents are set via anchors or height/width,and the >> contentHeight and contentWidth, which are the virtual area, in this case >> your grid layout. >> Give your Grid an id, and set the scrollview contentWidth/contentHeight to >> the width and height of the >> Also, usually you need
[Interest] QML and ScrollView
I am trying to use a ScrollView in a QQuickWidget but the layout does not seem to be honoring what I am wanting. I have a bunch of “Label/TextField” pairs to the point where there are so many that I need them inside a scrollview. the issue is that if I do that then the TextFields which are set to fill in the rest of the row (inside a GridLayout) does not fill the row. If I remove the ScrollView then the TextField fills the remainder of the row? Since this is my first foray into QML I am sure I am missing something obvious. this is with Qt 5.5.1 on OS X. I’ll post my — Mike Jackson [imikejack...@gmail.com <mailto:imikejack...@gmail.com>] import QtQuick 2.4 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 import LeroyJsonStorage 1.0 Rectangle { // Make the background a bit darker color: "Light Gray" border.color: "Black" ScrollView { anchors.fill: parent height: 800 GridLayout { columns: 2 anchors.fill: parent Label { text: "Foo" Layout.row: 0 } TextField { text: "Bar" Layout.row: 0 Layout.column: 1 Layout.fillWidth: true } Label { text: "Foo" Layout.row: 1 } TextField { text: "Bar" Layout.row: 1 } Label { text: "Foo" Layout.row: 2 } TextField { text: "Bar" Layout.row: 2 } Label { text: "Foo" Layout.row: 3 } TextField { text: "Bar" Layout.row: 3 } Label { text: "Foo" Layout.row: 4 } TextField { text: "Bar" Layout.row: 4 } Label { text: "Foo" Layout.row: 5 } TextField { text: "Bar" Layout.row: 5 } Label { text: "Foo" Layout.row: 6 } TextField { text: "Bar" Layout.row: 6 } Label { text: "Foo" Layout.row: 7 } TextField { text: "Bar" Layout.row: 7 } } } } ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Compiling Qt 5.5.1 without @rpath on OS X 10.10
I have self compiled Qt 5.5.1 on OS X 10.10 and everything seemed to have worked out fine except that all the frameworks have an install_name starting with @rpath. Researching on the internet[1] seems to indicate that adding the option “-no-rpath” should take care of that issue (I want full absolute paths to each of the frameworks) but after rebuilding with that option I am still getting frameworks that have @rpath at the start. Is this still a bug and not working on OS X? Or did I simply miss something? [1] http://lists.qt-project.org/pipermail/development/2015-September/023069.html <http://lists.qt-project.org/pipermail/development/2015-September/023069.html> — Mike Jackson ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QWebEngine::back() not working
We are coding up a Qt 5.4.2 application (also tested with Qt 5.5.1) and we are using a QWebEngineView. generally the web view works just great. We are able to load our documentation into it and view it fine. As a convenience to our users we added the traditional “Forward” and “Back” buttons to the window and hooked up their slots to the view’s back slot. When the user clicks on the button the view is loading the previously loaded web page. We have done lots of verification that the QWebViewHistory actually has something in it that we can actually load. We read the docs on the slot and even tried coding the long form instead of using the actual convenience function. Nothing seems to be working. Were we supposed to be doing an actual “refresh” on the view after calling “back()”? or did we miss something simple? Thanks for any help — Mike Jackson ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Missing Style Sheets on self built Qt 5.5.1
We have built Qt 5.5.1 and we noticed in QtAssistant that none of the normal page style is there any more. We did omit WebKit since (a) it wouldn’t build successfully (b) we did not need it for our project. From poking around at the pre-built binaries of Qt it looks like QtAssistant uses QWebKit to for rendering. My guess is that it falls back to something simpler if QWebKit is unavailable. IF that is the case then I am not going to try to hunt down what the issue is. Thanks Mike Jackson ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Missing Style Sheets on self built Qt 5.5.1
Thanks for the verification. Didn’t want to waste time digging and reporting something that was already known. I will assume there are plans to move QtAssistant to QWebEngine? Qt 5.6 or Qt 6.0? — Mike Jackson > On Nov 12, 2015, at 4:49 PM, Thiago Macieira <thiago.macie...@intel.com> > wrote: > > On Thursday 12 November 2015 16:19:16 Mike Jackson wrote: >> We have built Qt 5.5.1 and we noticed in QtAssistant that none of the normal >> page style is there any more. We did omit WebKit since (a) it wouldn’t >> build successfully (b) we did not need it for our project. From poking >> around at the pre-built binaries of Qt it looks like QtAssistant uses >> QWebKit to for rendering. My guess is that it falls back to something >> simpler if QWebKit is unavailable. IF that is the case then I am not going >> to try to hunt down what the issue is. > > You are correct. If QtWebKit isn't available, Qt Assistant falls back to > QTextDocument, which is a lot more limited. > > -- > 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] Compile Errors (Qt 5.4.2) with OS X 10.10 and JavaScript
I am trying to compile Qt with C++11 support on OS X 10.10 using Xcode 6.4 tooling. ./configure -opensource -confirm-license -debug-and-release -release -nomake tests -nomake examples -no-compile-examples \ -qt-zlib -qt-libjpeg -qt-libpng -platform macx-clang -openssl -c++11 -sdk macosx10.9 -no-use-gold-linker \ -dbus -prefix $QT_PREFIX I have also adjusted all the mac-* mkspec files to have a minimum OS X deployment of 10.9 instead of 10.7 and I get the following compile error. Googling the error turns up some webkit bug pages. So I am going to assume that this is an issue with the C++11 standard maybe as clearly the Qt folks were able to compile Qt and distribute it and the only difference is that I am enabling C++11 support. Should I try Qt 5.5.1 perhaps? In file included from runtime/JSGlobalObject.cpp:72: API/ObjCCallbackFunction.h:32:9: fatal error: 'JavaScriptCore/JSCallbackFunction.h' file not found #import ^ In file included from runtime/JSLock.cpp:28: In file included from runtime/Operations.h:28: In file included from runtime/JSFunctionInlines.h:29: In file included from runtime/Executable.h:39: In file included from parser/SourceCode.h:32: thanks -- Mike Jackson [imikejack...@gmail.com <mailto:imikejack...@gmail.com>] ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Configure arguments for precompiled binaries
We are having some issues with mis-matched OS X deployment targets among a few of our dependent libraries. In order to try to track down the issue we are trying to build our own Qt instead of installing the prebuilt binary from Qt.io of Qt 5.4.2. Is there a wiki page or configuration file that has the exact “configure” command used to compile Qt 5.4.2? We are trying to track down why the min_macosx_version is set to 10.7? And to make sure the we are consistently using C++11 and libc++ in all of our libraries. Thanks -- Mike Jackson [imikejack...@gmail.com <mailto:imikejack...@gmail.com>] ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] To rpath or not when building Qt
On Wed, Mar 11, 2015 at 7:59 PM, Thiago Macieira thiago.macie...@intel.com wrote: On Wednesday 11 March 2015 23:50:52 Nikos Chantziaras wrote: On 10/03/15 21:07, Scott Aron Bloom wrote: When building Qt for distribution via LGPL of a closed source product using shared libraries. What is the best method to make sure the plugins pickup the Qt libraries you are shipping? As Thiago mentioned, you can use RPATH. However, RPATH is overridable. s/overridable/non-overridable/ What you *really* want to set is RUNPATH. If you want to load the plugins from a directory that exists inside the directory of your executable, then use $ORIGIN as the prefix. I personally prefer RUNPATH, so that I can override when I want to. For reference, if you want to use RPATH instead of RUNPATH, use: -Wl,-rpath=\$ORIGIN/lib,--disable-new-dtags Note: it is somewhat of a nightmare to escape the $ in \$ORIGIN in a way that can make it undamaged to the final link command. The shell must receive \$ORIGIN, and until it makes it there, it can pass through several processing stages. You might need an unholy amount of escape sequences ($ORIGIN or similar.) Trial end error :-/ See Creator's source code for the way to do it with qmake. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center Is there a way to do this _during_ the packaging of the application? If I add those link commands then will I not need to copy all the Qt Libraries into my build folder? Anyone have any experience doing any of this from CMake? It looks like CMake may have something already figured out, Possibly... -- Mike Jackson imikejackson _at_ gee-mail dot com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Deploying 5.4.0 Application to Linux
I am having an issue trying to create a self contained app package on Linux. Specifically I am using Mint 17.x for development and Qt 5.4.0 offline installer. I use CMake for my build system. I have no issues debugging my application so that sanity check works from QtCreator. I have created a folder where I have placed my application (DREAM3D), a shell script (DREAM3D.sh) and qt.conf. I have also created a lib directory and a plugins directory. In the plugins directory I have the platforms directory that contains the libqxcb.so file. I have placed all the qt libraries in the lib directory. I have exported the LD_LIBRARY_PATH correctly. I have placed the following in the qt.conf: [Paths] Plugins=plugins When I start the app from the terminal i get the dreaded [mjackson@MintDev1:DREAM3D-5.2.967-Linux-x86_64]$ ./DREAM3D This application failed to start because it could not find or load the Qt platform plugin xcb. Reinstalling the application may fix this problem. Aborted I have googled about as much as possible. Everyone seems to say the same thing, to which I have followed the instructions and I _think_ I have everything setup the way the articles/postings/blogs have instructed but still nothing is working. Has anyone ever encountered this and what was the problem? Thanks for any help. -- Mike Jackson imikejackson _at_ gee-mail dot com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5
I am trying to compile some Qt code that is the following: #if defined(Q_WS_X11) extern void qt_x11_wait_for_window_manager(QWidget * mainWin, bool); qt_x11_wait_for_window_manager(mainWin, false); #endif I am trying to reimplement some of the QSplashScreen with some additional functionality and I think I may be missing a link library: This is the error I get during linking: CMakeFiles/DREAM3D.dir/DSplashScreen.cpp.o: In function `DSplashScreen::finish(QWidget*)': DSplashScreen.cpp:(.text+0x33f): undefined reference to `qt_x11_wait_for_window_manager(QWidget*, bool)' collect2: ld returned 1 exit status I have googled as much as I can but can not really reveal what library I am missing to link against. This is with a self built Qt 4.8.4 on CentOS 6.5. Thanks for any help with this. -- Mike Jackson imikejackson _at_ gee-mail dot com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Qt -4.8.3 self compiled is corrupted when complete
I am trying to compile Qt 4.8.3 with a fully patched Visual Studio 2010 Service Pack 1 as a 64 bit compile. When the compile finishes and I try to launch assistant or designer they just crash out. No error dialog or anything. They just refuse to launch. I used the following command from a Visual Studio x64 command prompt configure -confirm-license -opensource -debug-and-release -shared -fast -exceptions -stl -no-qt3support -nomake demos -nomake examples I have read around on google that mentions adding -platform win32-msvc2010 which might help but does not in my case. I also tried adding -mp to speed up the compiles which did not help either. Has anyone else run into this type of problem? -- Mike Jackson imikejackson _at_ gee-mail dot com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Link Errors when Creating a Windows DLL containing Qt Widgets
I am trying to create a shared library for a part of my project that contains a class derived from QFrame called QFilterWidget. If I build the code as a shared library I am getting link errors with the following output. 19QLeeMarchingCubesWidget.obj : error LNK2001: unresolved external symbol public: static struct QMetaObject const QFilterWidget::staticMetaObject (?staticMetaObject@QFilterWidget@@2UQMetaObject@@B) 19QSMVtkPolyDataWriterWidget.obj : error LNK2001: unresolved external symbol public: static struct QMetaObject const QFilterWidget::staticMetaObject (?staticMetaObject@QFilterWidget@@2UQMetaObject@@B) I am running moc on the class which generates my moc_QFilterWidget.cxx file and I have the necessary __declspec(dllexport)/(dllimport) stuff defined in another header. #if defined (PipelineBuilderLib_EXPORTS) /* Compiling the DLL/Dylib */ #if defined (_MSC_VER) /* MSVC Compiler Case */ #define PipelineBuilderLib_EXPORT __declspec(dllexport) #elif (__GNUC__ = 4) /* GCC 4.x has support for visibility options */ #define PipelineBuilderLib_EXPORT __attribute__ ((visibility(default))) #endif #else /* Importing the DLL into another project */ #if defined (_MSC_VER) /* MSVC Compiler Case */ #define PipelineBuilderLib_EXPORT __declspec(dllimport) #elif (__GNUC__ = 4) /* GCC 4.x has support for visibility options */ #define PipelineBuilderLib_EXPORT __attribute__ ((visibility(default))) #endif #endif This is the top part of the class declaration for QFilterWidget: class PipelineBuilderLib_EXPORT QFilterWidget : public QGroupBox { Q_OBJECT; public: QFilterWidget(QWidget* parent = NULL); virtual ~QFilterWidget(); }; The link errors occur when I am creating a plugin library (SurfaceMeshPlugin) which uses the library that the QFilterWidget is compiled into (PipelineLib). I'm not really sure what I am missing at this point. I am mostly an OS X guy so I may just be missing something about building Qt based DLL's on windows. Building as a static library is NOT possible because of a singleton class that is in the PipelineLib. If I build as a static library then I get 2 distinct instances of a singleton which is odd but understandable if the plugin links a static lib and the Application links a static lib. If anyone might be able to shed some light on how to create a DLL that has QtWidgets with their signals/slots that would be awesome. Thanks -- Mike Jackson imikejackson _at_ gee-mail dot com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest