Re: [Interest] Swift and Qt? (formally?)
Sorry for asking the obvious... but... You should be able to use the ObjC bridges in Swift. As a developer - you should not really care, Swift is "mostly compatible" with ObjC. What is the exact problem with this approach? On Tue, Sep 20, 2016 at 2:51 PM, Jason Hwrote: > > Sent: Tuesday, September 20, 2016 at 1:35 PM > > From: "Jason H" > > To: "Till Oliver Knoll" > > Cc: "Qt Project" > > Subject: Re: [Interest] Swift and Qt? (formally?) > > > > > Sent: Tuesday, September 20, 2016 at 7:39 AM > > > From: "Till Oliver Knoll" > > > To: "Qt Project" > > > Subject: Re: [Interest] Swift and Qt? (formally?) > > > > > > Am 19.09.16 um 18:52 schrieb Robert Iakobashvili: > > > > On Mon, Sep 19, 2016 at 5:25 PM, Jason H wrote: > > > >> There is a 9-month old github; https://github.com/msorvig/qt- > and-swift for integrating the two. > > > >> > > > >> Are there any plans for formal Qt support of Swift? Obj-C is > painful. > > > > > > > > +2 > > > > > > As far as I know there is no "Swift++" compiler available, that is a > > > compiler which can compile "Swift + C++", right? In analogy to ObjC++. > > > > > > So unless that's the case the common denominator between "Qt" and > > > "Swift" is C. Of course one could "wrap" the Qt objects - somehow - > into > > > C structures and make them "look" like objects (and vice versa). But > > > that would be a clumsy approach. > > > > > > So unless we do have C++ support in Swift my guess is that Qt can do > > > little here. > > > > > > > Well it is on the roadmap, but out of scope for 3.0, which was just > released. > > > > I don't think I need full-interop, just enough to let me avoid coding > Obj-c, which for me is mainly AppDelegate. But I can see how in the short > term it is zero-sum. The app however would mirror how interop is done with > Android static classes though. That might be something? > > I could also restate the problem entirely. It would really be appreciated > if Qt supplied an AppDelegate that I can hook into and supply handlers for > without having to write Obj-C. That would satisfy my (and I think others' > wishes) It would also tie into my long-running gripe about Qt's incomplete > platform integration on Mobile. If such an AppDelegate plugin approach were > developed, it should also be able to plug into Android well. (The plugin*, > not the AppDelegate. Android would need it's own version of app delegate) > > *Not strictly a QPlugin. > ___ > 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] CLion to replace QtCreator?
On Tue, Apr 5, 2016 at 7:37 PM, Thiago Macieirawrote: > On terça-feira, 5 de abril de 2016 10:05:07 PDT Julius Bullinger wrote: > > On Monday, 4. April 2016 18:23, Thiago Macieira wrote: > > >>9. Multiple cursors (see the demo on SublimeText's home page - its > > >>epic, > > >>and Atom badly implements it), > > > > > > Explain. Sounds intriguing. > > > > It's better shown than explained, see e.g. > > http://i.stack.imgur.com/TMRK3.gif and > > > https://packagecontrol.io/readmes/img/d346da37ce3d306f23f960f2a103fbc0f4562 > > 034.gif for examples. > > Interesting. I'd have worked around the issue by selecting the block and > telling Creator to replace "var " with "var _". > > This feature is capable of doing more: each cursor you see on screen, has it's own clipboard. What I usually use it for is: 1) take a CSV string and paste it into the editor 2) select, and inside the selection search for "," 3) create multiple cursors from the selections 4) press "del" - now list is line separated list. 5) now press control+left to select the previous word, copy it 6) press "up" and "paste" 7) now each line has the last word of the previous line. 8) now press "home" and type "" 9) press "end" and type "" 10) remember that undo works also on all cursors Hard to explain in pure text... VIM users will tell you this is doable from the editor since "ages", but it's not trivial to learn. This is not trivial to implement in QTextEditor, since it has a single QCursor (a deep dependency, which cannot be changed quite easily. Or can it...? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] CLion to replace QtCreator?
On Sun, Apr 3, 2016 at 10:00 PM, Thiago Macieirawrote: > > But I have to say I don't feel any unpleasantness. Qt Creator is the best > IDE > I've ever used. There are some things I'd do differently, but that's all. I > also expect that's how most Qt developers and especially the Qt Creator > developers feel, so it's highly unlikely we'll do a complete change of > direction. > > Without trying to offence, "you need to walk around the neighborhoods" a little. While QtCreator is definitely "cool" and very speedy, there are some things I see in IntelliJ/AndroidStudio which I definitely miss in QtCreator: 1. XML tags completion for known tags. This can be done for *.UI files, and maybe some part of *.QS. Basic XML structure is already know - so even for unknown XML variants - the IDE knows what tag to close. 2. Class implementations - for example, I derive from an interface and pressing control+enter on the type will add missing methods. 3. When I define an inline class (Java, but can be done using lambda expressions in C++), just pressing control+enter will write the code for me. For example: AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setPositiveButton(android.R.string.ok, new ___ Pressing "control+enter" will create a new anonymous class which derives new DialogInterface.OnClickListener() 4. When a method argument is an enum, code completion works on the corresponding enum, and adds the needed type. 5. Automatically know how to modify R"code" for example here: ListView mListView = findViewById(R.id.notifications_list_view); it will suggest to typecast to ListView (to fix - again, control+enter). 6. While debugging the values of variables are displayed inside the text editor, in light gray (no more looking for them in a panel). 7. When using connect, using Niko's example, I would like to type connect(button, [clicked], this, [playTheFunkyMusic]) and QtCreator should automagically find the signals of button, and the corresponding slots of "this". It used to work in ond style Qt4 signals, but with modern connections, I need to type the whole type. Some signals are hard to find, for example the "click()" signal from QButton comes from QAbstractButton. This means that when an object "has/provides" a signal, I need to guess the parent type which defined the signal in order connect it (I did not have to know this in Qt4). 8. When I am lost "control+enter" usually fixe stuff for me. 9. Multiple cursors (see the demo on SublimeText's home page - its epic, and Atom badly implements it), Well basically, Android studio (and even XCode a little) helps me not knowing the language by filling in the gaps for me. I know more C++ then Java, but I am far more productive with Java - because the IDE does a lot of heavy lifting. Not saying that QtCreator is not good, but blindly claiming it's the best is not always true. Its even possible that some things are working in QtC4... I need to re-check at home. I should also open official feature requests and not complaining on a ML. I agree. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] [ANN] build2 - C++ build toolchain
On Mon, Feb 8, 2016 at 11:21 PM, Thiago Macieirawrote: > > qmake's philosophy is "assume everything is there and just use it". It's > meant > mostly for using Qt itself, so you can be sure that all of it is present. > If > you use third-party libraries and they're not present, you'll get a > compilation error somewhere. Yes, right. That is why I am probably barking at the wrong tree. I need CMake support only. Integrating 3rd party software into Java/ObjC/Swift code is trivial, there are lots of project handling this. Its very sad that in 2016 we still don't have something like that can help integrating 3rd party libraries into my C++ code. I have been looking inside QtCreator and Subsurface to look "how the grown ups are doing this" and it seems that those projects are just recreating the build system internally in qmake. I tried doing the same for 2 libraries (libetpan and mailcore) and it was a pain. How do you guys integrate 3rd party libraries into your code? Feel free to tell me I am going too off-topic for this list is this is the case. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] [ANN] build2 - C++ build toolchain
While I agree... this still does not help me with a 3rd party code, which has a CMakeFiles.txt inside. How can I tell me CMakeFiles.txt - "see this subdir? now do include it, and make it part of your project". On Tue, Feb 9, 2016 at 8:33 PM, Konstantin Podsvirov < konstan...@podsvirov.pro> wrote: > 09.02.2016, 12:04 PM, "Diego Iastrubni" <diegoi...@gmail.com>: > > > How do you guys integrate 3rd party libraries into your code? > > CMake forever! :-) > > -- > Regards, > Konstantin Podsvirov > ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] [ANN] build2 - C++ build toolchain
This is interesting... as it solves a nigher level proeblem than "configure-make-install/cmake-make-install". It smells more like gradle a little bit... which is nice. But can it handle Qt code..? resources...? UI...? "moc"? Does it work on Windows? Which reminds me: What can I use to manage (and build..?) dependencies for my Qt5 project? Lets assume I still want to build using (q|c)make, I still want some tool to ask him "give me libfoo, libssh and whatever they need, and add them to my project, then build it". 1. I needs it to work on Windows (mingw if possible) and Linux/Mac. 2. QtCreator should be able to build projects generated by this tool 3. It needs to add interdependencies between subprojects as needed 4. Ability to update when upstream releases a new version 5. FOSS I guess I am looking for a "Gradle" for C++, or maybe just something like CocoadPods to CMake. Does this thing exist? On Wed, Feb 3, 2016 at 4:29 PM, Boris Kolpackovwrote: > Hi, > > build2 is an open source, cross-platform toolchain for building and > packaging C++ code. It includes a build system, package manager, and > repository web interface. We've also started cppget.org, a public > repository of open source C++ packages. > > This is the first alpha release and currently it is more of a technology > preview rather than anything that is ready for production. We have tested > this version on various Linux'es, Mac OS, and FreeBSD. There is no Windows > support yet (but cross-compilation is supported). > > The project's page is: > > https://build2.org > > For those who need to see examples right away, here is the introduction: > > https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml > > Enjoy, > Boris > ___ > 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] Using std::string in android projects
On Thu, Dec 31, 2015 at 1:48 AM, Thiago Macieirawrote: > On Wednesday 30 December 2015 23:05:02 Jason H wrote: > > I'm trying to use a library that uses std::strings. However when the > string > > is assigned, I get a crash at 0xdeadcab1 (see > > > https://android.googlesource.com/platform/ndk/+/bfa632c/sources/cxx-stl/gab > > i++/src/terminate.cc#52) > > That's the std::terminate's default handler. That handler is called when an > exception is thrown but not caught. What exception was thrown? Can you put > a > catch block to see what it was? > > > My .pro android block: > > android { > > QT += androidextras > > LIBS += > > > -L/Users/jhihn/Downloads/android-ndk-r10e/platforms/android-9/arch-arm/usr/ > > lib/ -lstlport_shared > > Why are you using stlport? Can't you use libstdc++ like everyone else does? > For that matter, didn't I read a day or two ago that Android had switched > the > NDK to Clang/LLVM, so libc++ should be the one people would use? > > Obligatory RTFM: http://stackoverflow.com/questions/11662644/compile-ndk-code-using-gnu-libstdc ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QIcon::fromTheme on OS X
yes, this works out of the box only in Linux. On Windows/Mac, you need to do a little more work. I will give parts of the solution in this email, if this is not completely clear do tell, and I will elaborate. I did this in mainwindow.cpp (note that on linux I assume the icons are available): #ifndef Q_OS_LINUX QStringList l; l << ":flat-icon-theme"; QIcon::setThemeSearchPaths(l); QIcon::setThemeName("flat-icon-theme"); #endif And then create a corresponding resource directory. In my app I only added 512x512 icons, let the Qt menus scale down. Most PCs have enough memory, so this should not be a problem: diego ~/source/diego/ats $ ls src/flat-icon-theme/ 512x512 build-flat-icon-theme.sh index.theme readme.txt diego ~/source/diego/ats $ ls src/flat-icon-theme/512x512/ accessories-calculator.png dialog-warning.png document-save.png edit-paste.png format-text-italic.png list-add.png view-fullscreen.png zoom-fit-best.png applications-games.png document-new.png edit-copy.png format-indent-less.png format-text-underline.png mail-unread.png view-refresh.png zoom-in.png audio-x-generic.png document-open.png edit-cut.png format-indent-more.png go-home.png tools-check-spelling.png view-restore.png dialog-information.png document-print.png edit-delete.png format-justify-fill.png go-next.png toom-out.png x-office-calendar.png dialog-question.png document-properties.png edit-find.png format-text-bold.png go-previous.png video-x-generic.png x-office-document.png The last missing "voodoo" is that you *must* define the theme index: diego ~/source/diego/ats $ cat src/flat-icon-theme/index.theme [Icon Theme] Name=Flat Comment=Flat icons Inherits=default Directories=512x512 [512x512] Size=16 Hope this helps On Wed, Dec 23, 2015 at 6:07 PM, René J.V.wrote: > Hello, > > I am sparring with QIcon::fromTheme() on OS X, and have the feeling I'm > missing something from the documentation. > > From > > "Note: By default, only X11 will support themed icons. In order to use > themed icons on Mac and Windows, you will have to bundle a compliant theme > in one of your themeSearchPaths() and set the appropriate themeName()." > > I understand that even with the native OS X platform theme, all I would > have to do is ensure that QIcon::themeSearchPaths() returns a list with > XDG-compliant icon themes, and QIcon::themeName() a ditto icon theme name. > > I think I am replying to both conditions, adding > > qDebug() << Q_FUNC_INFO << "themeSearchPaths=" << > themeSearchPaths() << "themeName=" << themeName(); > > to the actual lookup-part of QIcon::fromTheme() I get the output > > static QIcon QIcon::fromTheme(const QString &, const QIcon &) > themeSearchPaths= ("/opt/local/share/icons", "/opt/local/share/pixmaps", > ":/icons") themeName= "hicolor" > > Evidently I have the hicolor theme in /opt/local/share/icons, and indeed > when I launch applications using the XCB QPA plugin or using the KDE > platform theme, I'm getting the expected icons, e.g. > > hasUserTheme= false engine= 0x7fe58bf583a0 name "dialog-ok" -> > QIcon("dialog-ok",availableSizes[normal,Off]=(QSize(16, 16), QSize(22, 22), > QSize(32, 32), QSize(48, 48), QSize(64, 64), QSize(128, 128), QSize(256, > 256)),cacheKey=0x1) > > However, using just the native OS X theme I'm seeing this: > > hasUserTheme= false engine= 0x7fb5b9e3c880 name "dialog-ok" -> > QIcon(availableSizes[normal,Off]=(),cacheKey=0x1) > hasUserTheme= false engine= 0x7fb5b9f05b40 name "dialog-cancel" -> > QIcon(availableSizes[normal,Off]=(),cacheKey=0x2) > hasUserTheme= false engine= 0x7fb5b9c71c20 name "user-trash" -> > QIcon(availableSizes[normal,Off]=(),cacheKey=0x7) > > It looks like a bit of required functionality isn't loaded or is cut out > of the loop with the OS X platform theme, but that's not what the > documentation suggests. > > Alternatively: the documentation also mentions a "guaranteed fallback for > platforms that do not support theme icons", e.g. "edit-undo" == > ":/undo.png". Is there a lookup function somewhere that maps all > known/supported XDG icon names to that fallback naming scheme? > > Thanks, > René > ___ > 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] Qt5 and libressl
So... the official statement from Qt is that elliptic curves is a ... "safe" encryption to be used in the wild...? (still remember in college how I was thought that this is a safe encryption because the NSA developed it... and it is fast...) If this was not clear: I think that Thiago meant to say: "yea, I know this sux, and we are looking for someone to give us a patch and remove that MIM code". I might be wrong. On Thu, Nov 12, 2015 at 8:20 PM, Thiago Macieirawrote: > On Thursday 12 November 2015 16:29:03 René J.V. Bertin wrote: > > Hello, > > > > Rebuilding Qt 5.5.0 with libressl 2.2.4 installed instead of openssl I > got > > this error: > > > > > qt-everywhere-opensource-src-5.5.0/qtbase/src/network/ssl/qsslcontext_openss > > l.cpp:347:33: error: ‘SSL_CTRL_SET_CURVES’ was not declared in this scope > > SSL_CTRL_SET_CURVES, > > ^ > > make[3]: *** [.obj/qsslcontext_openssl.o] Error 1 > > > > > > From the looks of it, libressl emulates a recent enough openssl version > to > > activate the code that refers to SSL_CTRL_SET_CURVES, but doesn't > actually > > provide the token. > > > > Is there an official position regarding building Qt 5 against libressl? > > Our current position is "our code is written for OpenSSL". If you want to > use > something that emulates OpenSSL, the burden is on you to make sure it's a > good > emulation. > > -- > 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
Re: [Interest] Qt3 repository
Just a few random commits I see: - http://git.trinitydesktop.org/cgit/qt3/commit/?id=7c0bc39229bbba839dea93fe12b0d2cdbe21eec0 The message log claims that deleting NULL will crash an app. This is not true, as in C++ you can safely delete a null pointer. whrp74@srv690 src $ make test1 g++ test1.cc -o test1 whrp74@srv690 src $ ./test1 whrp74@srv690 src $ cat test1.cc int main() { int *i = 0; delete i; return 0; } whrp74@srv690 src $ gcc --version gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3 Copyright (C) 2009 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. The bug they fix is still there. - http://git.trinitydesktop.org/cgit/qt3/commit/?id=679d4f0bcdd20ef467ee02b366bf024779950fc2 OOPS. This a very good fix. Lets hope we don't have it in Qt5. - http://git.trinitydesktop.org/cgit/qt3/commit/?id=16f24a61f80fef5f29c81182a3bcf3906bdee7a7 In this bug they modify the embedded sqlite3. This is bad. I am not sure why they do this change: - qWarning( QString( QODBCDriver::open: Unknown option value '%1' ).arg( *it ) ); + qWarning( QODBCDriver::open: Unknown option value '%s', (*it).latin1() ); - http://git.trinitydesktop.org/cgit/qt3/commit/?id=58451e41d9ecfb405f5dd2718444ac78e8d51c8b Be warned: +Qt 3.5 is a new feature release. It is not backwards compatible with any +prior Qt3 version due to changes in the QStyle API. - http://git.trinitydesktop.org/cgit/qt3/commit/?id=04fcdc080321c9531c5b61e6f216d3967f2d39ef sed -i 's/kwin/twin/g'? This commit seems very ... ... ... . ? This is what I see from very limited view. Note, I have no idea what I am talking about, and I might be wrong. Its very easy to criticize someone when you are an outsider. but... It seems that this works for them as an OSS, but for a proprietary app.. be careful, you cannot iterate that often and you have only one delivery. On Thu, Aug 22, 2013 at 12:24 AM, Thiago Macieira thiago.macie...@intel.com wrote: On quarta-feira, 21 de agosto de 2013 20:06:50, Guido Seifert wrote: Is there a changlog, which explains, what the patches do? This is not a direct question to you, Thiago. They appear to have written changelogs for their 3.3.8c and d releases. The c release's changelog clearly violates Qt patch release policies, by adding symbols that weren't there before. As for the rest, I believe their changelog is the Git log. -- 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
Re: [Interest] Highlighting: huge rule numbers [hang app]
Try looking at the highlighter used in QtCreator. The highlighter is quite fast. On Fri, Jun 7, 2013 at 2:25 PM, Sensei sense...@gmail.com wrote: On 6/5/13 3:32pm, Sensei wrote: My rules are ~5000. It seems that I'm out of luck here. Such a huge number of regexp rules need a sophisticated parser, it works if I parse the text completely (for example using bison co). Cheers! ___ 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] QMenu RightToLeft layout direction issue
I cannot reproduce this on Windows. However... the Windows theme has some issues with RTL :) It seems the bug is specific to X11. On Sun, Apr 21, 2013 at 12:12 AM, Muhammad Bashir Al-Noimi mbno...@gmail.com wrote: On 04/16/2013 12:40 PM, Muhammad Bashir Al-Noimi wrote: On 04/16/2013 09:30 AM, Bache-Wiig Jens wrote: On Apr 16, 2013, at 9:17 AM, Muhammad Bashir Al-Noimi mbno...@gmail.commbno...@gmail.comwrote: Hello Guys, QMenu doesn't work with RightToLeft layout direction (as shown in this screenshot[1]) although I called setLayoutDirection(Qt::RightToLeft) How can I fix this issue? You might first want to try if your application works better on an actual right-to-left language configuration (i.e run your KDE desktop with arabic or similar) to verify if your issue is indeed affecting users and not just an artefact of the LTR preview. In some cases (such as if the window manager is involved) only the system global LTR setting will function as expected. I tried to run RTL applicationss on KDE, they look fine as shown in this screenshot: http://img580.imageshack.us/img580/7117/db72.png Any idea guys? -- Best Regards, Muhammad Bashir Al-Noimi ___ 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] QMenu RightToLeft layout direction issue
Then comparing the KDE look and feel is pointless, unless you are testing against an unreleased version of KDE ;-) On Wed, Apr 17, 2013 at 12:39 AM, Muhammad Bashir Al-Noimi mbno...@gmail.com wrote: On 04/16/2013 02:52 PM, Diego Iastrubni wrote: Muhammad, The Qt application, was it Qt5 or Qt4? I know for sure that Qt4 has no issues in regarding RTL. I will look into Qt5. I mentioned at the first message of this thread that I'm using Qt 5.0.2 -- Best Regards, Muhammad Bashir Al-Noimi ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QMenu RightToLeft layout direction issue
Muhammad, The Qt application, was it Qt5 or Qt4? I know for sure that Qt4 has no issues in regarding RTL. I will look into Qt5. On Tue, Apr 16, 2013 at 1:40 PM, Muhammad Bashir Al-Noimi mbno...@gmail.com wrote: On 04/16/2013 09:30 AM, Bache-Wiig Jens wrote: On Apr 16, 2013, at 9:17 AM, Muhammad Bashir Al-Noimi mbno...@gmail.com wrote: Hello Guys, QMenu doesn't work with RightToLeft layout direction (as shown in this screenshot[1]) although I called setLayoutDirection(Qt::RightToLeft) How can I fix this issue? You might first want to try if your application works better on an actual right-to-left language configuration (i.e run your KDE desktop with arabic or similar) to verify if your issue is indeed affecting users and not just an artefact of the LTR preview. In some cases (such as if the window manager is involved) only the system global LTR setting will function as expected. I tried to run RTL applicationss on KDE, they look fine as shown in this screenshot: http://img580.imageshack.us/img580/7117/db72.png -- Best Regards, Muhammad Bashir Al-Noimi ___ 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 checkout and build 5.0.2 release?
With the risk of sounding too stupid.. I will ask.. How is exactly the code structured today? ON the Qt4.x times there was one single git repository and it was quite easy to understand how the visioning worked. Now a days - I am really confused. How is the repository saved? I must admit that http://qt-project.org/wiki/Building_Qt_5_from_Git does not explain too much. I would like to know where the branch and master are for example. How can I switch between the two for bug fixing etc. On Thu, Apr 11, 2013 at 7:23 PM, Thiago Macieira thiago.macie...@intel.comwrote: On quinta-feira, 11 de abril de 2013 19.32.19, Dmitrii Volosnykh wrote: There is the latest activity on gitorious.org/qt/qt5: v5.1.0-alpha1: Created tag v5.1.0-alpha1 Cannot find corresponding one for 5.0.2 release. Hmm... sorry, this is slightly confusing. The final releases come from a different repository, which contains almost the same contents as the qt5 content one. That's the http://qt.gitorious.org/qtsdk/qtsdk repository. You'll find the tags for the betas, RCs and final releases there. -- 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
Re: [Interest] QPlainTextEdit layout bug
On Tue, Jan 29, 2013 at 1:54 PM, M. Bashir Al-Noimi mbno...@gmail.comwrote: On 29/01/2013 10:39 ص, Diego Iastrubni wrote: On Thu, Jan 24, 2013 at 11:50 PM, M. Bashir Al-Noimi mbno...@gmail.comwrote: As you know Qt supports auto text layout for all Qt input widgets but recently I noticed that QPlainTextEdit doesn't!! Could anyone tell me if this is wrong or right before filing a new bug report. As you can see in this screenshot QLineEdit works fine: http://i.imgur.com/vmvQvi3.png While QPlainTextEdit doesn't! http://i.imgur.com/VCOS7xj.png PS I couldn't find any temporarily solution for this issue because this widget works with plain text only so I couldn't add text-align: right; for example. You are not looking for text-alignment, but text direction, which is not implemented in QPlainTextDocumentLayout does not support direction. I will see if it hard to implement, porting from QTextDocumentLayout and see if anyone else is interested. Thanks Diego, I opened a bug report at: https://bugreports.qt-project.org/browse/QTBUG-29341 As a workaround - you can use now QTextEdit instead of QPlainTextEdit. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt5 mingw builds
On Tue, Jan 8, 2013 at 9:51 AM, Konrad Rosenbaum kon...@silmor.de wrote: One hint that will make it easier: do not try to use GCC as a cross-compiler! Like the Mingw32 gcc to compile for 64bits or the Mingw64 gcc to compile 32bits - finding out how and where to apply the correct options on three different projects will drive you crazy! It is far easier to install both and use each one for its default target. So... cross compiling Qt5/win32 from Linux is not possible yet? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt5 mingw builds
On Tue, Jan 8, 2013 at 11:26 PM, Nikos Chantziaras rea...@gmail.com wrote: On 08/01/13 23:22, Konrad Rosenbaum wrote: On Tuesday 08 January 2013, Diego Iastrubni wrote: So... cross compiling Qt5/win32 from Linux is not possible yet? In theory it should be possible to create a mkspec for this, but nobody attempted it yet. I myself gave up cross-compiling with MinGW from Linux somewhen early in the 4.x run, when my orginal recipe failed. You have to test the software on Windows anyways, so why bother with compiling on a different system? (If it is Bash-Scripts: there is MSys.) 1) there is a clear distinction between a developer machine and a test machine. No compilers. 2) Automation on linux is way easier. 3) Managing a build that creates binaries for windows and linux on the same machine is cool. It's been working fine for me for ages now, and out of the box with this: http://mxe.cc Yes. I used this to compile some apps. I did enable qt there and I did see a qmake but I did not test it enough yet. I wish this was ported and tested to Qt5. Besides this - I strongly recommend this (just set CC and CXX and cmake will work with this new compiler). ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Non-movable Qt build
On Thu, Dec 27, 2012 at 3:06 PM, Thiago Macieira thiago.macie...@intel.comwrote: Also remember that the qmake code dealing with relative paths is broken. That's why you can only do out-of-source builds from outside the source, not in a subdir of it. I have been hearing this theorem for a few weeks/months. However... I always build out of source, as a subdir (on Linux). QtCreator, and even Qt itself work for me. Every Qt project - I build out of source in a subdir. I have yet still have not found a bug. I have yet found a test case that fails for me. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] how to read data from a spreadsheet
On Wed, Dec 5, 2012 at 5:02 AM, Carlos Oviedo Becerra covi...@estudiantes.uci.cu wrote: hello friends, not like reading about QtCreator data from a spreadsheet, please who can help me I will thank you, Regards ... I need To read Excel, you can use: https://www.gaia-gis.it/fossil/freexl/index For CSV, you can use: http://hackage.haskell.org/package/csv None have pure Qt wrappers ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Spell checking.
On Wed, Oct 31, 2012 at 7:07 PM, Bill Crocker william.croc...@analog.comwrote: I am adding spell checking to my application. I have the spell checking engine. I can see how to use the QSyntaxHighlighter to to underline words that are spelled incorrectly in a QTextEdit. http://lists.qt-project.org/mailman/listinfo/interest How about using QTextEdit::setExtraSelections instead of using a syntax highlighter? http://qt-project.org/doc/qt-4.8/qtextedit.html#setExtraSelections http://qt-project.org/doc/qt-4.8/qtextcharformat.html#setUnderlineStyle ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Future of Qt Opensource SDK?
On Fri, Oct 12, 2012 at 11:47 AM, Bo Thorsen b...@fioniasoftware.dk wrote: Hi Carel, Den 12-10-2012 10:27, Carel Combrink skrev: What is the future of Qt Opensource SDK? One of the Digia people said on this list a couple of weeks ago that there won't be any new SDK releases for the OSS licenses. You have to download Qt creator and Qt separately. Link please? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Text editor's line numbers: misalignment
On Wed, Aug 22, 2012 at 10:55 AM, Sensei sense...@gmail.com wrote: If I change the font to Courier, or Times, or Andale Mono or Xcode's Menlo, everything is OK, I've tested alignment with 10K lines. When I use Monaco, the font I intended to use, lines numbers get misaligned almost immediately. CodeEditor::CodeEditor(QWidget *parent) : QPlainTextEdit(parent) { lineNumberArea = new LineNumberArea(this); connect(this, SIGNAL(blockCountChanged(int)), this, SLOT(updateLineNumberAreaWidth(int))); connect(this, SIGNAL(updateRequest(QRect,int)), this, SLOT(updateLineNumberArea(QRect,int))); connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(highlightCurrentLine())); setFont(QFont(Courier, 22)); updateLineNumberAreaWidth(0); highlightCurrentLine(); } 1) use the same font for the line number as the text editor - or 2) set the hight of each line in the panel, as the hight of each line in the editor. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] qt creator for use with qt5?
On Mon, Jul 2, 2012 at 12:32 PM, Sivan Greenberg si...@omniqueue.comwrote: Hi all, Having built qt5 from git, I now want to test it using qt creator. What is the way to build the latest qt creator from source on kubuntu 64bit (latest) such that I could laos test creator as well? Did you try to use the qmake from qt5 to build qtcreator? When I tested some small apps I made this is what I did. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Porting Qt app to windows
On Tue, Jun 19, 2012 at 5:36 PM, David Ching d...@dcsoft.com wrote: Also I would try this on a PC (either real or virtual) that has a fresh Windows installed (and try all versions of Windows you need to support, e.g. XP/Vista/7) and make sure you are providing all the required DLL's (that are not present on a fresh Windows installation). I just rename the name of the Qt directory temporarily to _Qt or something and then rename back when I need to code... Ugly, but simulates uninstallation of Qt. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTextEdit not resizing with QFormLayout
Use layouts, not absolute positioning. Read the docs about it. On Tue, May 8, 2012 at 11:13 AM, Sujan Dasmahapatra s...@lmwindpower.comwrote: Please check this code snippet, with this when I resize the mainwindow, my textedit is not resizing. What could be the problem pls help. ** ** //mainwindow.h QPushButton *button; QTextEdit *edit; QFormLayout *formL; ** ** //mainwindow.cpp MainWindow::MainWindow(QWidget *parent):QMainWindow(parent) { setGeometry(0,0,800,600); ** ** button = new QPushButton(Click me!!,this); button-setGeometry(5,5,100,25); button-show(); ** ** edit1 = new QTextEdit(this); edit1-setGeometry(5, 35, width()-10, height()-40); edit1-show(); ** ** formL = new QFormLayout; formL-addRow((Name:), edit1); setLayout(formL); } ** ** Thanks sujan ___ 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 News
On Mon, Mar 26, 2012 at 12:06 PM, Sivan Greenberg si...@omniqueue.comwrote: Is not bad yes, but it seems that if I want just to read about qt, http://blog.qt.nokia.com/ might be better. I don't mind having to read things not related to qt's development itself, but what about having something similar to http://kerneltrap.org/newThat s/linuxhttp://kerneltrap.org/news/linux? That would be nice! Thanks for doing this for the community Sivan! (no, really, someone has to do it,right?) ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] qt.conf
On Tue, Mar 20, 2012 at 11:44 AM, Graham Labdon graham.lab...@avalonsciences.com wrote: Hi I am trying to use the qt.conf functionality In my qt.conf file I have the following ** ** [Paths] prefix = C:\\Program Files (x86)\\AcquisitionSoftware\\Qt ** ** Running the app through the debugger I can use QLibraryInfo to verify that Qt is recognising the presence of the conf file ** ** I.e. QLibraryInfo::location(QLibraryInfo::LibrariesPath) returns C:/Program Files (x86)/AcquisitionSoftware/Qt/lib ** ** However running the application on a machine without Qt installed fails as it cannot locate QCore4.dll ** ** Note that on the target machine the folder C:/Program Files (x86)/AcquisitionSoftware/Qt/lib exists and contains QCore4.dll ** That is because your code has not been called yed. The win32 loader cannot find the DLLs needed. Solution: Write a wrapper application that sets parses the .conf file, set PATH correctly and then starts the application. The startup APP must not depend on any DLLs not provided by the OS or have the DLLs on the same dir. Solution 2: Move the DLLs to the application directory on windows. Solution 3: Does win32 support something like rpath on unix? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Using dmalloc with Qt!
On Tue, Mar 13, 2012 at 1:21 PM, Lata Agrawal lata.agra...@enrouteinc.comwrote: I am writing a QT application which runs on Linux/MIPS platform. I want to use a memory detector tool for my QT application. After going through this link http://blog.kaushalgoa.com/2009/01/memory-leak-detection-tools.html, I understand that *dmalloc* would be the one which I can use. I am not sure how to get started to use dmalloc with QT. I am using busybox shell on Linux/MIPS device. Please help. My recommendation: Port this to linux/x86 (or amd64 or ARM) and use Valgrind. Just for development. When I faced problems on ARM, I ported my app to x86 and tested it with valgrind. BTW: Did you read this? http://dmalloc.com/docs/latest/online/dmalloc_toc.html ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QPushButton Background Colour
On Mon, Mar 5, 2012 at 2:37 PM, lucas.betsch...@crypto.ch wrote: Hello, I made some QPushButton with only a icon. I'd like to have them flat (like the left one in picture 12) with no text. But when I click on such a flat QPushButton some background colour appears. How can I turn this off? Please see: http://doc.qt.nokia.com/4.7/qtoolbutton.html#autoRaise-prop ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest