Re: [Qt-creator] Custom widget not showing in Qt Designer on Linux
OK, so I have found my $$[QT_INSTALL_PLUGINS]/designer directory and, indeed, the .so file is not getting put there. I can copy it from the source directory and then Qt designer does see the widget in the Rob's stuff location. It can't find the header file, so I just tried putting that in with the rest of the program project's source and I then get the following errors: /home/robertw/Software/Qt4/Qt4Test/ui_mainwindow.h:35: error: declaration of ‘rwLineEdit* Ui_MainWindow::rwLineEdit’ /home/robertw/Software/Qt4/Qt4Test/rwlineedit.h:7: error: changes meaning of ‘rwLineEdit’ from ‘class rwLineEdit’ /home/robertw/Software/Qt4/Qt4Test/ui_mainwindow.h:53: error: expected type-specifier before ‘rwLineEdit’ /home/robertw/Software/Qt4/Qt4Test/ui_mainwindow.h:53: error: cannot convert ‘int*’ to ‘rwLineEdit*’ in assignment /home/robertw/Software/Qt4/Qt4Test/ui_mainwindow.h:53: error: expected ‘;’ before ‘rwLineEdit’ Does that help in suggesting where the issue might be? Why would the .so file not be copied to the plugins directory? The widget itself seems to be compiling correctly! Thanks again, Rob Robert Wood wrote: I'm trying to get a very simple custom widget to show in Qt designer, but just can't get it to work, wondering whether anyone can help. In Qt Creator, I did File | New and chose Qt4 Designer Customer Widget. I gave it a name rwLineEdit then in the next box typed in rwLineEdit as the name of my Widget Classes. (Not really clear why this has to be done twice.) This then gives me all names of all the files such as rwlineedit.pri, .h etc and the plugin names the same but with plugin inserted. I chose my Widget Base Class as QLineEdit, fileld into some descriptions, includingstating a (non existent group - I'm assuming At designer handles that and makes a new one?). Next window only allows me to edit PlginName which I leave as rwlineeditplugin and the resource file as icons.qrc (again I left this). It adds a load of files and all seems well. I can add a routine to the class and compile it. The problem is, that when I launch Qt Designer it simply refuses to show up! From what I can see of the tutorials on how to do custom widgets the information seems to be in the source files. For example: Q_EXPORT_PLUGIN2(rwlineeditplugin, rwLineEditPlugin) Is at the bottom of rwlineeditplugin.cpp I have put all this in ~/Software/Qt4/customWidgets/rwLineEdit/ and I end up with a librwlineeditplugin.so file in there, but am thinking that should be somewhere Qt Designer looks at, which I thought was specified in: target.path = $$[QT_INSTALL_PLUGINS]/designer Would be really grateful if someone can point me in the right direction on this. Many thanks, Rob ___ 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] Remote debugging armv5te using Qt Creator
Hi, I'm currently trying to debug remotely an application through gdb using Qt Creator. Majo had the same issue previously (http://www.mail-archive.com/qt-creator@trolltech.com/msg02532.html) but I don't know what was its final results. -- State of the art : I've gdbserver on my device and gdb on my host. Gdb is configured into Qt Creator (ToolsOptionsDebugGdb) without gdb startup script. My application is built using the right compiler (out of Qt Creator) My application is on the device. -- Procedure : I launch my application using gdbserver on the device : gdbserver host:port ./application I start debugging using gdb in Qt Creator : DebugStart DebuggingStart and attach to remote application (using i386 option) -- The architecture should match your target, i.e. arm. (Shouldn't matter though, since your cross-debugger doesn't not support i386 anyway.) Also, have you set the sysroot? And which version of Creator are you using? Log on the device console : [ ... ] /lib/ld-linux.so.3: No such file or directory.\n This looks to be the main problem. Again: Have you set the correct sysroot? Questions : 1 - Gdbserver is logging an error : gdbserver: error initializing thread_db library: version mismatch between libthread_db and libpthread and I have not this error when I'm debugging remotely without Qt Creator. I guess it is due to commands sent by Qt creator to gdb. How can we configure the commands sent by Qt Creator to gdb/gdbserver ? Which commands do you send to gdb when manually debugging? 2 - What is the purpose of gdb startup file and gdbserver startup file ? What is the syntax ? It's an sh script intended for doing preparations on the server side, like copying your program or starting gdbserver. See the email you referenced above for an example. If you are not the intended addressee of this message, please cancel it immediately and inform the sender. How do I know if I'm the intended addressee? Anyway, you are hereby informed that I received this message. Christian ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Problems while compiling Qt Creator plugins in mac
Hi, On Feb 24, 2010, at 4:54 AM, ext Aneesh Muralidharan wrote: Hi, is there any special doc which point to how to compile Qt Creator Plugin in Mac I am following http://www.vcreatelogic.com/p/2009/08/document-on-writing-plugins-for-qt-creator/ I'm finding it difficult to compile Qt Creator plugins in mac. which is available here SVN Location: https://svn2.hosted-projects.com/vcreatelogic/VCLTools/QtCPlugins Username: anonymous Password: anonymous I'm using Qt 4.6.2 and Qt Creator 1.3.0. When I tried to compile I got these errors ldld: library not found for -lCore_debug : library not found for -lCore_debug collect2: ld returned 1 exit status collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/Vy/Vyn6FFtiFOKCA48HAb-RwTI/-Tmp-//ccDV1o4V.out (No such file or directory) make[1]: *** [../../qt-creator-1.3.1-src/build/bin/Qt Creator.app/Contents/PlugIns/VCreateLogic/libQTCPluginProjectSupport_debug.dylib] Error 1 make: *** [sub-QTCPluginProjectSupport-make_default-ordered] Error 2 It would be useful to see a few more lines above the the actual error message (e.g. the actual line passed to the linker). Generally speaking, your plugin tries to link against the debug version of Qt. Which might not be there if you use the Qt binary download. It might help to download and install the package with the debug libraries (you find the link on the page that pops up when you download the Qt Mac binary package). ++ Eike Thanks and regards, Aneesh.M ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Custom widget not showing in Qt Designer on Linux
Hi, here is an extract from the documentation we are planning to add to shed some light onto the Qt Designer plugin issue. I hope it helps: ...You can use Qt APIs to create plugins that extend Qt Designer. Qt Designer fetches plugins from the standard locations and loads the plugins that match its build key. For more information on how to create and locate plugins and to change the default plugin path, see {How to Create Qt Plugins}. Qt Designer is integrated into Qt Creator and in addition comes as a standalone application. The correct folder to place the plugins depends on which you use. The integrated Qt Designer fetches plugins from the %SDK%\bin\designer folder on Windows and Linux and QtCreator.app/Contents/MacOS/designer folder on Mac. Choose Tools Form Editor About Qt Designer Plugins. The standalone Qt Designer is part of the Qt library used for building projects, located under %SDK%/qt. Therefore, it fetches plugins from the following folder: %SDK%\qt\plugins\designer. To check which plugins where loaded successfully and which failed, choose Help About Plugins in the Qt Creator. The Qt Creator that is included in pre-built SDK packages on Windows is built with the Microsoft Visual Studio compiler, whereas the version of Qt shipped for building applications is configured and built to use the MinGW/g++ compiler. Plugins built by using this version of Qt cannot be loaded by Qt Creator because the build-keys do not match. The plugins can only be used in the standalone version of Qt Designer. Choose Help About Qt Creator to check the Qt version Qt Creator was built with. If you want to use Qt Designer plugins that were built for the shipped Qt version, you need to make sure that Qt Creator is built with the same compiler by either recompiling Qt Creator using MinGW or recompiling Qt with Microsoft Visual Studio, depending on which configuration you want to use for your applications. Regards, Friedemann -- Friedemann Kleint Nokia, Qt Development Frameworks ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Overriding dumper.py
Hi, I was thinking of doing some changes to /usr/share/qtcreator/gdbmacros/dumper.py and before looking into qt-creator source I thought asking would be faster, can I override the original dumper.py if I put a copy somewhere in my ~? thank you, paulo ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Custom widget not showing in Qt Designer on Linux
Hi Friedemann, Many thanks for that. It actually throws up questions! Originally Creator was saying it couldn't find Qt Designer, so I installed it [designer] from my (Mandriva) repositories and that works fine other than with the customer widget. So, I wondered whether it was this issue with different builds. To be on the safe side I downloaded the latest sdk from the website and have installed that, while uninstalling designer from the Mandriva repositories. With 2010.02 sdk installed, once again, I cannot launch designer from creator. (By right clicking on the .ui file in the project explorer.) If I reinstall designer from my repositories I guess I will be able to. Creator just tells me: 'The application Qt Designer could not be found'. I have put: /opt/qtsdk-2010.02/qt/bin in my PATH as that seems to be where designer lives. (I didn't previously realise it was in the sdk.) If I try and launch designer from the command line I get this error: makekdewidgets(12371)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from /var/tmp/kdecache-robertw/ksycoca4 designer: symbol lookup error: /usr/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so: undefined symbol: _ZN6Phonon12PulseSupport11getInstanceEv Is there something I am missing here or is designer broken on Linux with 2010.02? Thanks again, Rob Friedemann Kleint wrote: Hi, here is an extract from the documentation we are planning to add to shed some light onto the Qt Designer plugin issue. I hope it helps: ...You can use Qt APIs to create plugins that extend Qt Designer. Qt Designer fetches plugins from the standard locations and loads the plugins that match its build key. For more information on how to create and locate plugins and to change the default plugin path, see {How to Create Qt Plugins}. Qt Designer is integrated into Qt Creator and in addition comes as a standalone application. The correct folder to place the plugins depends on which you use. The integrated Qt Designer fetches plugins from the %SDK%\bin\designer folder on Windows and Linux and QtCreator.app/Contents/MacOS/designer folder on Mac. Choose Tools Form Editor About Qt Designer Plugins. The standalone Qt Designer is part of the Qt library used for building projects, located under %SDK%/qt. Therefore, it fetches plugins from the following folder: %SDK%\qt\plugins\designer. To check which plugins where loaded successfully and which failed, choose Help About Plugins in the Qt Creator. The Qt Creator that is included in pre-built SDK packages on Windows is built with the Microsoft Visual Studio compiler, whereas the version of Qt shipped for building applications is configured and built to use the MinGW/g++ compiler. Plugins built by using this version of Qt cannot be loaded by Qt Creator because the build-keys do not match. The plugins can only be used in the standalone version of Qt Designer. Choose Help About Qt Creator to check the Qt version Qt Creator was built with. If you want to use Qt Designer plugins that were built for the shipped Qt version, you need to make sure that Qt Creator is built with the same compiler by either recompiling Qt Creator using MinGW or recompiling Qt with Microsoft Visual Studio, depending on which configuration you want to use for your applications. Regards, Friedemann ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Overriding dumper.py
On Wednesday 24 February 2010 13:36:50 ext paulo wrote: Hi, I was thinking of doing some changes to /usr/share/qtcreator/gdbmacros/dumper.py and before looking into qt-creator source I thought asking would be faster, can I override the original dumper.py if I put a copy somewhere in my ~? That's not supported. But you can add a line loading your personal dumpers in ~/.gdbinit. Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Custom widget not showing in Qt Designer on Linux
Hi Rob, Originally Creator was saying it couldn't find Qt Designer, so I installed it [designer] from my (Mandriva) repositories and that works fine other than with the customer widget. So, I wondered whether it was this issue with different builds. Yes, it means the installed version of Qt Designer is older than the one from the SDK and cannot load the plugins compiled by the SDK. With 2010.02 sdk installed, once again, I cannot launch designer from creator. (By right clicking on the .ui file in the project explorer.) If I reinstall designer from my repositories I guess I will be able to. Creator just tells me: 'The application Qt Designer could not be found'. If I try and launch designer from the command line I get this error: makekdewidgets(12371)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from /var/tmp/kdecache-robertw/ksycoca4 designer: symbol lookup error: /usr/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so: undefined symbol: _ZN6Phonon12PulseSupport11getInstanceEv Is there something I am missing here or is designer broken on Linux with 2010.02? This probably originates from Qt Designer trying to load a phonon plugin. Try to remove /opt/qtsdk-2010.02/qt/plugins/designer/libphononwidgets.so and clear the environment variable QT_PLUGIN_PATH. If it still doesn't work, try to put /opt/qtsdk-2010.02/qt/bin as the first directory in the PATH. Regards, Friedemann -- Friedemann Kleint Nokia, Qt Development Frameworks ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Building with a Custom Process Step
On Feb 23, 2010, at 9:08 AM, ext Tomás Ortí wrote: Yes, Eike. I tried different things, like setting chmod 777 test.bash, with no luck. Feel free to ask me any test. I would like to have this working. Well, I have no idea, it works for me, both with Qt Creator 1.3.1 and current dev snapshot. Exited with code 255. That means that the exit code of your test.bash is 255. Values != 0 are usually for indicating an error in the script, that's why Qt Creator stops with an error. From the bash man page: Bash's exit status is the exit status of the last command executed in the script. ++ Eike Thank you, Tomas. On Feb 22, 2010, at 3:27 PM, ext Tomás Ortí wrote: Hi. I'm trying to build a project from QtCreator, with a Custom Process Step. I want QtCreator to execute a script before the make execution. When I click on Build All, I get this Compile Output: Running build steps for project mser... Starting: /home/notroot/test.bash Exited with code 255. Error while building project mser When executing build step 'Custom Process Step' Currently the test.bash only has an echo Compiling... How can I achieve that? Just to make sure: did you make the test.bash executable? (i.e. can you run it from a terminal) Br, -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ATT1..txt -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Patch for autocreate method implementation
В Tue, 23 Feb 2010 09:39:40 + Danny Price deepblue...@googlemail.com пишет: DP Nice! DP DP Couple of language issues: DP DP Switch between Method Declaration/Definition should be Switch between DP Member Decleration/Defintion. C++ does not have 'methods'. It has member DP functions. DP I did not implement this part, so this is upstream issue, you can report it via official bug-tracker DP Implementation does not found. Will I try to create it? should be DP Implementation not found. Create it? DP Ok well, english is not my native language, I will fix it in my patch ;-) DP However I wonder if this dialog is necessary? I think that this dialog is necessary, because you need have alternative, for ex. in case when you press Shift+F2 on declaration in 'signal' section accidentally. -- WBR Alexander Drozdov ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Custom widget not showing in Qt Designer on Linux
Hi Friedemann, This probably originates from Qt Designer trying to load a phonon plugin. Try to remove opt/qtsdk-2010.02/qt/plugins/designer/libphononwidgets.so and clear the environment variable QT_PLUGIN_PATH. If it still doesn't work, try to put /opt/qtsdk-2010.02/qt/bin as the first directory in the PATH. Well, I can now open designer from creator. I did have to put /opt/qtsdk-2010.02/qt/bin as the first directory in the PATH to finally get it going. However, I still have exactly the same problem in that the librwlineeditplugin.so file does not get put in the plugins directory. Again, I can manually copy the file to /opt/qtsdk-2010.02/qt/plugins, but I still get the same sorts of errors: /home/robertw/Software/Qt4/Qt4Test/ui_mainwindow.h:53: undefined reference to `rwLineEdit::rwLineEdit(QWidget*)' I should mention that I do have permissions for the sdk install directory. Just in case it's of interest: printenv QT_INSTALL_PLUGINS /opt/qtsdk-2010.02/qt/plugins I am not really convinced I had the wrong designer last time from the repository anyway, because both designer and creator were 4.6.1. I should maybe mention that I have successfully subclassed things like QPushButton and coded them into programs successfully, it's just getting this integration with Qt Designer that is proving elusive! Yours frustratedly. :~) Rob ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Overriding dumper.py
Hi again, careful the last patch had an extra tab (which, as everybody knows, will cause segmentation faults and core dumps in the python interpreter). This one is ok. Cheers, Paulo paulo wrote: Ok that wont be necessary any more. Sorry for taking so long (about 4 hours for 10 lines of code errrm), but I had to learn python. Here's my first patch submission. (to whom it may concern lol) It's just a hack to remove the (des)ordering introduced by the hash in dumpers.py. Not much, but it works for me. Of course after this crash course on python I can say that I feel like the python inventor should be castrated (and that's me being nice; dam this doesn't even support tabs). I'm sure that guy will burn in hell for making me(us) suffer with the most idiotic scoping idea in the world. well cheers, Paulo André Pönitz wrote: On Wednesday 24 February 2010 13:36:50 ext paulo wrote: Hi, I was thinking of doing some changes to /usr/share/qtcreator/gdbmacros/dumper.py and before looking into qt-creator source I thought asking would be faster, can I override the original dumper.py if I put a copy somewhere in my ~? That's not supported. But you can add a line loading your personal dumpers in ~/.gdbinit. Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator --- /usr/share/qtcreator/gdbmacros/dumper.py2010-02-19 23:54:53.0 +0900 +++ dumper.py 2010-02-25 01:24:08.0 +0900 @@ -179,15 +179,30 @@ d.put('},') bp = Breakpoint() +### +# +# Node ( hack to order names in nested anon unions :p ) +# +### + +class Node: +def __init__(self, depth, idx, iname): +self.depth = depth +self.idx = idx +self.iname = iname +self.name = #%d_%d_%s % (depth, idx, iname) # Creates a list of field names of an anon union or struct -def listOfFields(type): +def listOfFields(type, depth): fields = [] +idx = 0 for field in type.fields(): if len(field.name) 0: -fields += field.name +fields.append(Node(depth, idx, field.name)) +idx += 1 else: -fields += listOfFields(field.type) +depth += 1 +fields += listOfFields(field.type, depth) return fields @@ -1183,10 +1198,11 @@ self.putField(type, anonymous union) if self.isExpandedIName(iname): self.beginChildren() -fields = listOfFields(field.type) +depth = 0 +fields = listOfFields(field.type, depth) for field in fields: -value = item.value[field] -child = Item(value, item.iname, field, field) +value = item.value[field.iname] +child = Item(value, item.iname, field.iname, field.name) self.beginHash() self.put('addr=%s,' % cleanAddress(value.address)) self.safePutItemHelper(child) ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Using QtCreator as a general C++ IDE
Hello trolls =) Is there a way to use QtCreator as a General Purpose IDE, instead of a Qt Only IDE... I like most of the features of code completion and browsing this IDE offers, and i really would like to use it as my main IDE, however i can't find a way to use it to anything other than creating Qt Apps. So, the question : Is it possible? If so, how? Thanks for your time, i'll wait for answers. =) -- Jefferson Bandeira ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Using QtCreator as a general C++ IDE
If nothing else you can always say CONFIG -= qt in your .pro file. You can also use it on Makefile-based projects. /s/ Adam On Wed, Feb 24, 2010 at 7:22 PM, Jefferson Bandeira jbsi...@ufrj.br wrote: Hello trolls =) Is there a way to use QtCreator as a General Purpose IDE, instead of a Qt Only IDE... I like most of the features of code completion and browsing this IDE offers, and i really would like to use it as my main IDE, however i can't find a way to use it to anything other than creating Qt Apps. So, the question : Is it possible? If so, how? Thanks for your time, i'll wait for answers. =) -- Jefferson Bandeira ___ 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] waiting for app trk to start error
Hi, I was working with TRK for many days. Then one fine day i am getting this error. I am totally clueless about how to fix this. QT creator is detecting my phone correctly - Summary: Run on 'Nokia E63 USB (COM20)' (self-signed certificate). Please help!!! -John ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator