Re: [Qt-creator] Editing widget rendering problems
2009/12/21 Alan Westbrook > It sounds like you have some video buffer corruption, try restarting your > windowing system. > > I haven't used Linux in a while, but it used to be that you could just log > out and log back in to do this. > > I have no video buffer corruption with QtCreator - 8f586ce. That why am am using stable 1.3.0 Is that still true? > > Alan > > On Sun, Dec 20, 2009 at 11:10 PM, Oleg Shalnev wrote: > >> Good day. >> >> After delete couple of lines and moving cursor, editor widget display some >> garbage instead of correct code. >> I hope I am not one who can see it. >> >> Linux 2.6.31-gentoo-r6 #1 SMP >> QtCreator - f229a76 >> >> -- >> Oleg Shalnev (Kalpa Project) >> -- >> mailto: o...@kalpa.ru >> skype: oleg_shalnev >> jabber: oleg.shal...@gmail.com >> http://kalpa.ru >> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> >> > > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > > -- Oleg Shalnev (Kalpa Project) -- mailto: o...@kalpa.ru skype: oleg_shalnev jabber: oleg.shal...@gmail.com http://kalpa.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Editing widget rendering problems
It sounds like you have some video buffer corruption, try restarting your windowing system. I haven't used Linux in a while, but it used to be that you could just log out and log back in to do this. Is that still true? Alan On Sun, Dec 20, 2009 at 11:10 PM, Oleg Shalnev wrote: > Good day. > > After delete couple of lines and moving cursor, editor widget display some > garbage instead of correct code. > I hope I am not one who can see it. > > Linux 2.6.31-gentoo-r6 #1 SMP > QtCreator - f229a76 > > -- > Oleg Shalnev (Kalpa Project) > -- > mailto: o...@kalpa.ru > skype: oleg_shalnev > jabber: oleg.shal...@gmail.com > http://kalpa.ru > > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Editing widget rendering problems
Good day. After delete couple of lines and moving cursor, editor widget display some garbage instead of correct code. I hope I am not one who can see it. Linux 2.6.31-gentoo-r6 #1 SMP QtCreator - f229a76 -- Oleg Shalnev (Kalpa Project) -- mailto: o...@kalpa.ru skype: oleg_shalnev jabber: oleg.shal...@gmail.com http://kalpa.ru <>___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Auto increment file version
On 12/16/2009 03:47 PM, Robert Caldecott wrote: > I have some tips on generating version numbers on my Qt Creator blog > which you may find useful. > > http://qtcreator.blogspot.com/2009/10/generating-automatic-version-numbers.html > > 2009/12/15 Tiago Correia: > >> Hi, >> I've looked on the internet and found some tools for auto-increment the >> build number of a file. >> Did someone made a script or plugin for Qt-Creator with this purpose? Or >> there is an easy way to do this? >> The project file supports VERSION, but there is now way to auto increment >> this value. >> >> -- >> Tiago Correia >> chief technology officer >> >> cnoti inovação& desenvolvimento – Aprendizagem enRiquecida pela Tecnologia >> www.cnotinfor.pt >> Telefone: +351 239 499 231 >> >> Subscreva gratuitamente a nossa Newsletter BICA – Boletim informativo de >> Interactividade, Comunicação e Aprendizagem >> >> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> >> >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > > I can't open the url. can you check the url again? thanks in advance best regards -- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.4.9 (GNU/Linux) mQGiBEpvrkcRBADSiXvtm3B3HO247hmhsRfKQ56yqTxAe1Fg/SiLRkDGR3Cmla4M I9P1C1WZA59OkPYMTQE45i4zKDwoaCsG6qUYV6gxBjL5czsYn7qPrJxRH7LuXyMy egxSWyIsPqlPYzSBzE/eLzDHs1q7ucpLx6HdqOzZ2ajPCpT2cG+cBWePLwCgkUfx cbkm6h2Tq1AAXIAwmueGDfcEAKjAACIWihubPSUX25/6ZWf528z736PEnCLcB1UT IE/tsYNZEyjVelSXJ1q0cUNjQalK6VYzrkv02daUtPby9Svvk3nSFNNrfpYrhOxT KXlE/PBjouQ1vxjoTFbSE1cWpUIbfW37BZ9Bjm1ERTfe8MMLlRGk2khdsyx6x359 JW4QA/9+7KF9xcg0ITJ5d48FS1b9h6NDTdm/ttjBLrQj+mHD0h8Y1xt6fka6/A1P BWXiJ8cmwSlW112Gs0caG44KISit8lDlTsDlXNnq9wrIZYgdyqRe2uowJZPlH6/N 4nYiVP3+3LwbXWD+Bpyv9vDcgPtEWBk27q8dx/V8q9mnohXqzLQbdGFuZ2tlIDxt dW11dG91dkBnbWFpbC5jb20+iGAEExECACAFAkpvrkcCGwMGCwkIBwMCBBUCCAME FgIDAQIeAQIXgAAKCRAsFraiOAWQA2RRAKCGK/cORhnCMI7bT34n04tTzG1wPQCf dw2L86uESYwGW4PUHJc0iv2coe25Ag0ESm+uRxAIAN+Se0IwVo0Hr5khx3lGIeYL j3ycZQMT3q+LnNtrgUNgmRLBziLwNu69KHXBRXXML23C9PqqGIQodtl07KAvttC3 G/CUdARCxtqVjT66HxM5875h+LX/XaytsCaqXHTte9bIakEYjRIJDYTY6Gza8LjY n/qz3TKDEmX7/Apqz4KCjcdyo0DwMptet4k71V0wulnTJwVwqfVAUsdtj/xL8MqD yuvuLNWN+AEXqOEs+Ilv8PN/TgQbJXxY+g7eD277jsxJ8njJuUzusKxHCiSx49Yh pSZC/r1mKICYJZszwrNU6CtOBXYK0Yz70O1/ZTcSOzn9EDtM5u/IKECZJWSUJ3MA AwUIAK1QWT5V1RbAhfoENapgF6T/F0nUdf9TjwkOgleo4yfqXymGXVWmp86JBn7J wTDS/GdzO77uiXZMHTCqhbmNYogAapHNeE++RAReiVT/iZjLvIbqOBFcGBqie5Ar SZTZfS20Mpzf2joLQfcWxQ5L3/ZtpUkiUrfVTdVldwwMob1pGknnrZNF4rpDE9Nk /kj+thaWKlvVrMj6e8nULbbYn1rT6iEqIS7Wfspn0DYe9YJLffFgIxybaRfPYd2l rsH6kY15F736mjhdWqgOfWgRgUKCh+VVU/5S2OBKihPdpXjn4CI+kVzmrkvQfftB WxBVgQuMMS44L/u8Te93EOOnybmISQQYEQIACQUCSm+uRwIbDAAKCRAsFraiOAWQ A8H6AJ9hlHl1flzNKd98UyqMBXvyx87/vwCfdrIk4TYsfYDDbrpZ5fLnsMetaXE= =koJk -END PGP PUBLIC KEY BLOCK- ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Wrong path when using external editor
That's entirely likely to be a bug in Notepad. /s/ Adam On Sun, Dec 20, 2009 at 5:31 PM, Bob Babcock wrote: > Bob Babcock wrote in > news:xns9ce7bb52bec33wssddcgis...@62.70.27.71: > >> If the editor is emacs, the path emacs sees is >> .../Qt/2009.05/qt/projects/projectname/sourcefilename. > > This part is resolved. The path had a space in it and changing the > filespec from %f to "%f" makes it work. Adding quotes doesn't fix the > Notepad strangeness. > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Wrong path when using external editor
Bob Babcock wrote in news:xns9ce7bb52bec33wssddcgis...@62.70.27.71: > If the editor is emacs, the path emacs sees is > .../Qt/2009.05/qt/projects/projectname/sourcefilename. This part is resolved. The path had a space in it and changing the filespec from %f to "%f" makes it work. Adding quotes doesn't fix the Notepad strangeness. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Wrong path when using external editor
Qt Creator 1.3.0 under Windows XP Funny things happen if I try to open a file in the configured external editor: If the editor is the default Notepad, the expected code appears in Notepad, but if I select save-as, I immediately get Common Dialog error (0x3002). This does not happen if Notepad is run outside of Qt Creator. If the editor is emacs, the path emacs sees is .../Qt/2009.05/qt/projects/projectname/sourcefilename. I don't even have a projects directory under the Qt install tree; projects are on a different partition. Notepad is probably not getting the right path either. Open is defaulting to .../Qt/2009.05/qt. I have no desire to use Notepad as a code editor, but sometimes I do want to do something that the Qt Creator doesn't support. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Optimizing for speed
On Sun, Dec 20, 2009 at 9:56 PM, Coda Highland wrote: > Looks right to me. Thanks for your help, Adam! Paul ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Optimizing for speed
Looks right to me. /s/ Adam On Sun, Dec 20, 2009 at 3:10 PM, Paul Smith wrote: > Tried that. Does the following seem correct to you? > > --- > Running build steps for project exp... > Configuration unchanged, skipping QMake step. > Starting: /usr/bin/make -w > make: Entering directory `/home/psmith/exp' > g++ -c -pipe -O3 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall > -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB > -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore > -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp > exp.cpp: In function 'int main()': > exp.cpp:17: warning: unused variable 'ngen' > g++ -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread > make: Leaving directory `/home/psmith/exp' > Exited with code 0. > --- > > Paul > > > On Sun, Dec 20, 2009 at 8:14 PM, Coda Highland wrote: >> The -O1 is just a linker flag. The -O3 -O2 is a problem; try: >> QMAKE_CXXFLAGS_DEBUG -= -O2 >> QMAKE_CXXFLAGS_RELEASE -= -O2 >> >> On Sun, Dec 20, 2009 at 1:35 PM, Paul Smith wrote: >>> I have just done as you suggested, and getting the following: >>> >>> --- >>> Running build steps for project exp... >>> Configuration unchanged, skipping QMake step. >>> Starting: /usr/bin/make -w >>> make: Entering directory `/home/psmith/exp' >>> g++ -c -pipe -O3 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 >>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall >>> -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB >>> -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore >>> -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp >>> exp.cpp: In function 'int main()': >>> exp.cpp:17: warning: unused variable 'ngen' >>> g++ -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread >>> make: Leaving directory `/home/psmith/exp' >>> Exited with code 0. >>> --- >>> >>> Is it now correct? It appears -O1, -O2 and -O3. >>> >>> Paul >>> >>> >>> On Sun, Dec 20, 2009 at 6:18 PM, Coda Highland >>> wrote: That's because I'm an idiot and told you to use the wrong variable. Try QMAKE_CXXFLAGS. :P /s/ Adam On Sun, Dec 20, 2009 at 11:46 AM, Paul Smith wrote: > Thanks again, Adam. I did as you suggested, but still getting -O2: > > --- > Running build steps for project exp... > Configuration unchanged, skipping QMake step. > Starting: /usr/bin/make -w > make: Entering directory `/home/psmith/exp' > g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall > -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB > -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore > -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp > exp.cpp: In function 'int main()': > exp.cpp:17: warning: unused variable 'ngen' > g++ -O3 -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread > make: Leaving directory `/home/psmith/exp' > Exited with code 0. > --- > > Paul > > > > On Sun, Dec 20, 2009 at 2:36 AM, Coda Highland > wrote: >> This is really a qmake question, since it's qmake that controls this. >> >> In your .pro file, use something like: >> QMAKE_LFLAGS -= -O2 >> QMAKE_LFLAGS += -O3 >> >> /s/ Adam >> >> On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith wrote: >>> Thanks, Adam. I was thinking about the option -O3. How can one force >>> qt-creator to use -O3? >>> >>> Paul >>> >>> >>> On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland >>> wrote: On Linux, it uses -O2 by default in release mode if I recall correctly, so it already is. /s/ Adam On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: > Dear All, > > I am new to qt-creator, and I am using it mainly to write my C++ > programs on a Linux machine (Fedora 12). Basically, my projects are > "Empty Qt4" ones. > > My question is: how can one configure qt-creator for optimizing for > speed the C++ programs edited with qt-creator? > > Thanks in advance, > > Paul > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator >>> ___ >>> Qt-crea
Re: [Qt-creator] Optimizing for speed
Tried that. Does the following seem correct to you? --- Running build steps for project exp... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/psmith/exp' g++ -c -pipe -O3 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp exp.cpp: In function 'int main()': exp.cpp:17: warning: unused variable 'ngen' g++ -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread make: Leaving directory `/home/psmith/exp' Exited with code 0. --- Paul On Sun, Dec 20, 2009 at 8:14 PM, Coda Highland wrote: > The -O1 is just a linker flag. The -O3 -O2 is a problem; try: > QMAKE_CXXFLAGS_DEBUG -= -O2 > QMAKE_CXXFLAGS_RELEASE -= -O2 > > On Sun, Dec 20, 2009 at 1:35 PM, Paul Smith wrote: >> I have just done as you suggested, and getting the following: >> >> --- >> Running build steps for project exp... >> Configuration unchanged, skipping QMake step. >> Starting: /usr/bin/make -w >> make: Entering directory `/home/psmith/exp' >> g++ -c -pipe -O3 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 >> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall >> -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB >> -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore >> -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp >> exp.cpp: In function 'int main()': >> exp.cpp:17: warning: unused variable 'ngen' >> g++ -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread >> make: Leaving directory `/home/psmith/exp' >> Exited with code 0. >> --- >> >> Is it now correct? It appears -O1, -O2 and -O3. >> >> Paul >> >> >> On Sun, Dec 20, 2009 at 6:18 PM, Coda Highland wrote: >>> That's because I'm an idiot and told you to use the wrong variable. >>> Try QMAKE_CXXFLAGS. :P >>> >>> /s/ Adam >>> >>> On Sun, Dec 20, 2009 at 11:46 AM, Paul Smith wrote: Thanks again, Adam. I did as you suggested, but still getting -O2: --- Running build steps for project exp... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/psmith/exp' g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp exp.cpp: In function 'int main()': exp.cpp:17: warning: unused variable 'ngen' g++ -O3 -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread make: Leaving directory `/home/psmith/exp' Exited with code 0. --- Paul On Sun, Dec 20, 2009 at 2:36 AM, Coda Highland wrote: > This is really a qmake question, since it's qmake that controls this. > > In your .pro file, use something like: > QMAKE_LFLAGS -= -O2 > QMAKE_LFLAGS += -O3 > > /s/ Adam > > On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith wrote: >> Thanks, Adam. I was thinking about the option -O3. How can one force >> qt-creator to use -O3? >> >> Paul >> >> >> On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland >> wrote: >>> On Linux, it uses -O2 by default in release mode if I recall >>> correctly, so it already is. >>> >>> /s/ Adam >>> >>> On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: Dear All, I am new to qt-creator, and I am using it mainly to write my C++ programs on a Linux machine (Fedora 12). Basically, my projects are "Empty Qt4" ones. My question is: how can one configure qt-creator for optimizing for speed the C++ programs edited with qt-creator? Thanks in advance, Paul ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator >>> ___ >>> Qt-creator mailing list >>> Qt-creator@trolltech.com >>> http://lists.trolltech.com/mailman/listinfo/qt-creator >>> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com
Re: [Qt-creator] Optimizing for speed
The -O1 is just a linker flag. The -O3 -O2 is a problem; try: QMAKE_CXXFLAGS_DEBUG -= -O2 QMAKE_CXXFLAGS_RELEASE -= -O2 On Sun, Dec 20, 2009 at 1:35 PM, Paul Smith wrote: > I have just done as you suggested, and getting the following: > > --- > Running build steps for project exp... > Configuration unchanged, skipping QMake step. > Starting: /usr/bin/make -w > make: Entering directory `/home/psmith/exp' > g++ -c -pipe -O3 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall > -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB > -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore > -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp > exp.cpp: In function 'int main()': > exp.cpp:17: warning: unused variable 'ngen' > g++ -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread > make: Leaving directory `/home/psmith/exp' > Exited with code 0. > --- > > Is it now correct? It appears -O1, -O2 and -O3. > > Paul > > > On Sun, Dec 20, 2009 at 6:18 PM, Coda Highland wrote: >> That's because I'm an idiot and told you to use the wrong variable. >> Try QMAKE_CXXFLAGS. :P >> >> /s/ Adam >> >> On Sun, Dec 20, 2009 at 11:46 AM, Paul Smith wrote: >>> Thanks again, Adam. I did as you suggested, but still getting -O2: >>> >>> --- >>> Running build steps for project exp... >>> Configuration unchanged, skipping QMake step. >>> Starting: /usr/bin/make -w >>> make: Entering directory `/home/psmith/exp' >>> g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 >>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall >>> -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB >>> -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore >>> -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp >>> exp.cpp: In function 'int main()': >>> exp.cpp:17: warning: unused variable 'ngen' >>> g++ -O3 -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread >>> make: Leaving directory `/home/psmith/exp' >>> Exited with code 0. >>> --- >>> >>> Paul >>> >>> >>> >>> On Sun, Dec 20, 2009 at 2:36 AM, Coda Highland >>> wrote: This is really a qmake question, since it's qmake that controls this. In your .pro file, use something like: QMAKE_LFLAGS -= -O2 QMAKE_LFLAGS += -O3 /s/ Adam On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith wrote: > Thanks, Adam. I was thinking about the option -O3. How can one force > qt-creator to use -O3? > > Paul > > > On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland > wrote: >> On Linux, it uses -O2 by default in release mode if I recall >> correctly, so it already is. >> >> /s/ Adam >> >> On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: >>> Dear All, >>> >>> I am new to qt-creator, and I am using it mainly to write my C++ >>> programs on a Linux machine (Fedora 12). Basically, my projects are >>> "Empty Qt4" ones. >>> >>> My question is: how can one configure qt-creator for optimizing for >>> speed the C++ programs edited with qt-creator? >>> >>> Thanks in advance, >>> >>> Paul >>> ___ >>> Qt-creator mailing list >>> Qt-creator@trolltech.com >>> http://lists.trolltech.com/mailman/listinfo/qt-creator >>> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator >>> ___ >>> Qt-creator mailing list >>> Qt-creator@trolltech.com >>> http://lists.trolltech.com/mailman/listinfo/qt-creator >>> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Optimizing for speed
I have just done as you suggested, and getting the following: --- Running build steps for project exp... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/psmith/exp' g++ -c -pipe -O3 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp exp.cpp: In function 'int main()': exp.cpp:17: warning: unused variable 'ngen' g++ -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread make: Leaving directory `/home/psmith/exp' Exited with code 0. --- Is it now correct? It appears -O1, -O2 and -O3. Paul On Sun, Dec 20, 2009 at 6:18 PM, Coda Highland wrote: > That's because I'm an idiot and told you to use the wrong variable. > Try QMAKE_CXXFLAGS. :P > > /s/ Adam > > On Sun, Dec 20, 2009 at 11:46 AM, Paul Smith wrote: >> Thanks again, Adam. I did as you suggested, but still getting -O2: >> >> --- >> Running build steps for project exp... >> Configuration unchanged, skipping QMake step. >> Starting: /usr/bin/make -w >> make: Entering directory `/home/psmith/exp' >> g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 >> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall >> -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB >> -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore >> -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp >> exp.cpp: In function 'int main()': >> exp.cpp:17: warning: unused variable 'ngen' >> g++ -O3 -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread >> make: Leaving directory `/home/psmith/exp' >> Exited with code 0. >> --- >> >> Paul >> >> >> >> On Sun, Dec 20, 2009 at 2:36 AM, Coda Highland wrote: >>> This is really a qmake question, since it's qmake that controls this. >>> >>> In your .pro file, use something like: >>> QMAKE_LFLAGS -= -O2 >>> QMAKE_LFLAGS += -O3 >>> >>> /s/ Adam >>> >>> On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith wrote: Thanks, Adam. I was thinking about the option -O3. How can one force qt-creator to use -O3? Paul On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland wrote: > On Linux, it uses -O2 by default in release mode if I recall > correctly, so it already is. > > /s/ Adam > > On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: >> Dear All, >> >> I am new to qt-creator, and I am using it mainly to write my C++ >> programs on a Linux machine (Fedora 12). Basically, my projects are >> "Empty Qt4" ones. >> >> My question is: how can one configure qt-creator for optimizing for >> speed the C++ programs edited with qt-creator? >> >> Thanks in advance, >> >> Paul >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator >>> ___ >>> Qt-creator mailing list >>> Qt-creator@trolltech.com >>> http://lists.trolltech.com/mailman/listinfo/qt-creator >>> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Optimizing for speed
That's because I'm an idiot and told you to use the wrong variable. Try QMAKE_CXXFLAGS. :P /s/ Adam On Sun, Dec 20, 2009 at 11:46 AM, Paul Smith wrote: > Thanks again, Adam. I did as you suggested, but still getting -O2: > > --- > Running build steps for project exp... > Configuration unchanged, skipping QMake step. > Starting: /usr/bin/make -w > make: Entering directory `/home/psmith/exp' > g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall > -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB > -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore > -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp > exp.cpp: In function 'int main()': > exp.cpp:17: warning: unused variable 'ngen' > g++ -O3 -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread > make: Leaving directory `/home/psmith/exp' > Exited with code 0. > --- > > Paul > > > > On Sun, Dec 20, 2009 at 2:36 AM, Coda Highland wrote: >> This is really a qmake question, since it's qmake that controls this. >> >> In your .pro file, use something like: >> QMAKE_LFLAGS -= -O2 >> QMAKE_LFLAGS += -O3 >> >> /s/ Adam >> >> On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith wrote: >>> Thanks, Adam. I was thinking about the option -O3. How can one force >>> qt-creator to use -O3? >>> >>> Paul >>> >>> >>> On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland >>> wrote: On Linux, it uses -O2 by default in release mode if I recall correctly, so it already is. /s/ Adam On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: > Dear All, > > I am new to qt-creator, and I am using it mainly to write my C++ > programs on a Linux machine (Fedora 12). Basically, my projects are > "Empty Qt4" ones. > > My question is: how can one configure qt-creator for optimizing for > speed the C++ programs edited with qt-creator? > > Thanks in advance, > > Paul > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator >>> ___ >>> Qt-creator mailing list >>> Qt-creator@trolltech.com >>> http://lists.trolltech.com/mailman/listinfo/qt-creator >>> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] other languages syntax highlight support
It's a plugin system. It'll take some effort, but you should be able to do it. /s/ Adam On Sun, Dec 20, 2009 at 9:40 AM, paulo wrote: > Hi, > > is there a obvious way to add syntax highlight to qt-creator, for other > languages? > In my case, I would like to use qt-creator to edit my glsl files. > Is it possible to do this through a config/rules file? > > Thanks > Paulo > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Optimizing for speed
Thanks again, Adam. I did as you suggested, but still getting -O2: --- Running build steps for project exp... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/psmith/exp' g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp exp.cpp: In function 'int main()': exp.cpp:17: warning: unused variable 'ngen' g++ -O3 -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread make: Leaving directory `/home/psmith/exp' Exited with code 0. --- Paul On Sun, Dec 20, 2009 at 2:36 AM, Coda Highland wrote: > This is really a qmake question, since it's qmake that controls this. > > In your .pro file, use something like: > QMAKE_LFLAGS -= -O2 > QMAKE_LFLAGS += -O3 > > /s/ Adam > > On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith wrote: >> Thanks, Adam. I was thinking about the option -O3. How can one force >> qt-creator to use -O3? >> >> Paul >> >> >> On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland >> wrote: >>> On Linux, it uses -O2 by default in release mode if I recall >>> correctly, so it already is. >>> >>> /s/ Adam >>> >>> On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith wrote: Dear All, I am new to qt-creator, and I am using it mainly to write my C++ programs on a Linux machine (Fedora 12). Basically, my projects are "Empty Qt4" ones. My question is: how can one configure qt-creator for optimizing for speed the C++ programs edited with qt-creator? Thanks in advance, Paul ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator >>> ___ >>> Qt-creator mailing list >>> Qt-creator@trolltech.com >>> http://lists.trolltech.com/mailman/listinfo/qt-creator >>> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] other languages syntax highlight support
Hi, is there a obvious way to add syntax highlight to qt-creator, for other languages? In my case, I would like to use qt-creator to edit my glsl files. Is it possible to do this through a config/rules file? Thanks Paulo ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] gcov support?
Today I discovered there is a code-coverage tool for gcc called gcov. Not sure if this supports all gcc platforms but integration of this tool into Qt Creator might be something to add to a wish list... ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Add new project templates
i do agree too! i also think of class templates and stuff like that. from time to time i'd really like to add an extra class template besides from QObject or QWidget. it can help speed up your workflow if you're deriving classes from abstract ones. so all the pure virtual functions could be preimplementet in the template. 2009/12/18 Porfírio Ribeiro > I agree with you, i also use QtCreator for some non Qt projects! > > 2009/12/16 Tiago Correia > >> Hi, >> >> I'd like to add new templates for projects, when creating a new project. >> How can i do this? >> >> A project that is very useful for me is, for creating a simple C or C++ >> program, that doesn't use Qt. >> I've always to edit the pro file. If this could be done, I can see Qt >> Creator as tool for helping novice users to program. >> >> -- >> Tiago Correia >> chief technology officer >> >> cnoti inovação & desenvolvimento – Aprendizagem enRiquecida pela >> Tecnologia >> www.cnotinfor.pt >> Telefone: +351 239 499 231 >> >> Subscreva gratuitamente a nossa Newsletter BICA – Boletim informativo de >> Interactividade, Comunicação e Aprendizagem >> >> >> ___ >> Qt-creator mailing list >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> >> > > > -- > Porfirio Ribeiro > > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Are the full Qt sources required to build Qt creator?
Josh wrote: > Hi All, > > I'm trying to build qt-creator 1.3.0 from source (on linux). I have > built and installed Qt 4.6. I set the QTDIR env var to point to my Qt > install location and am using its qmake. > > It seems to be trying to include\build things that do not exist in my > QTDIR (ie. as part of the Qt install). > > So, my question is, do I need to build qt-creator with the full sources > for Qt? Or can I build and install Qt, then build against that install? > The latter is not working for me but I might be missing something. > > Thanks for any assistance! > > Josh That's strange: I'm compiling qt-creator against the qt 4.6 version downloaded from nokia site (but I've also been using the git version of qt for months, when it hadn't still been released), and just by running the qmake from qt 4.6 installation (without setting QTDIR), I've never experienced any problem... I then run the qtcreator shell script found in the bin directory of the shadow build... Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] qt-creator and qt macosx port
Eike Ziller wrote: > On Dec 17, 2009, at 3:41 PM, ext Lorenzo Bettini wrote: > >> Hi >> >> I've just started using an old imac and using the macosx port of qt >> 4.5.x... I've also installed the new qt 4.6 from the website, which >> comes with qt-creator. >> >> When I'm using qt-creator, I'd like to use the macosx port version of >> qt, however, when I select that qmake version, the qt-creator qt >> settings dialog says that it says that "qmake does not specify a valid >> Qt installation" and it won't use that qmake... > > For investigation what the problem is: > > * what is the qmake command called? There's a known problem in 1.3.0 > that you cannot use e.g. "qmake-4.5" or such, instead of "qmake" > (http://bugreports.qt.nokia.com/browse/QTCREATORBUG-463) > * in Qt Creator 1.3.0, if you open preferences, Qt Versions, > what does the tool tip show if you hover ? > It should look something like the attached image. > Hi Eike I don't have the mac with me right now, and won't have it till january; but, from what you say, it looks like it's only a matter of creating a softlink called "qmake" to "qmake-4.5"? cheers Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator