Re: [Qt-creator] Cannot display QML inside creator, works just fine outside it
On 16/02/16 17:00, Robert Löhning wrote: Am 12.02.2016 um 09:39 schrieb Hunger Tobias: On Do, 2016-02-11 at 23:13 +0200, Nikos Chantziaras wrote: When I run an application that displays a QQuickWidget outside of Creator, everything is fine. However, when running it in Creator (with or without debugger), the application freezes at the moment the QQuickWidget is used, and I get this error in "Application Output": Unrecognized OpenGL version Unrecognized OpenGL version What is wrong here? I'm on Linux 64-bit, with Qt Creator 3.6.0. Hi *, for completeness' sake, that issue is https://bugreports.qt.io/browse/QTBUG-49334 That's not the issue here. Disabling the welcome screen has no effect. ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Re: [Qt-creator] https://wiki.qt.io/ModelEditor
Hi Klaus, most of the plugin's features are implemented in libs/modelinglib, namespace "qmt". Use qmt::ProjectController to load a qmodel file. The loaded qmt::Project references a qmt::MPackage as the root to the model. Many use cases can be implemented using the visitor pattern on the model (see qmt::MConstVisitor and qmt::MVisitor). If you want to modify the model you must use qmt::ModelController. Before you change a model element you must call qmt::ModelController::startUpdateObject() or qmt::ModelController::startUpdateRelation(). After changing the element you must call qmt::ModelController::finishUpdateObject() / qmt::ModelController::finishUpdateRelation(). There are also extra methods for inserting or deleting elements from the model. Never change the model without calling these functions from the controller. (There is qmt::DiagramController which implements the same for diagrams). Look into qmt::DocumentController. This is the master class which creates and connects all the other controllers. Unfortunately the ModelEditor plugin is not (yet) made to be extended. There are no well-defined extension points and no factories are used which would allow using extended classes. If you want to extend the plugin or hook in another plugin you have to change the source code of ModelEditor plugin itself. You may extend ModelEditor::Internal::ActionHandler to add menu items to the global menu (e.g. create a new submenu in "Tools"). Adding context menu items for elements on a diagram is even harder. Currently it is hard coded in qmt::ObjectItem::contextMenuEvent() and derived classes. If you send me a little more details about what extension points you need I will have a look on it. Hope this helps a little bit. Regards, Jochen Am Dienstag, den 16.02.2016, 19:21 +0100 schrieb Klaus Reckefuss: > I want to "misuse" the new modelplugin for my own mopdel system and > generate c++ code from it. > > So i need the name of the classsystem which hold the model and how to > fill it from a given qmodel file. > And i want to make on the displayed model on right mouse button a > window > control to generate code. > Where in the given model i can integrate that? > > > ___ > Qt-creator mailing list > Qt-creator@qt-project.org > http://lists.qt-project.org/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
[Qt-creator] https://wiki.qt.io/ModelEditor
I want to "misuse" the new modelplugin for my own mopdel system and generate c++ code from it. So i need the name of the classsystem which hold the model and how to fill it from a given qmodel file. And i want to make on the displayed model on right mouse button a window control to generate code. Where in the given model i can integrate that? ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Re: [Qt-creator] Cannot display QML inside creator, works just fine outside it
Am 12.02.2016 um 09:39 schrieb Hunger Tobias: On Do, 2016-02-11 at 23:13 +0200, Nikos Chantziaras wrote: When I run an application that displays a QQuickWidget outside of Creator, everything is fine. However, when running it in Creator (with or without debugger), the application freezes at the moment the QQuickWidget is used, and I get this error in "Application Output": Unrecognized OpenGL version Unrecognized OpenGL version What is wrong here? I'm on Linux 64-bit, with Qt Creator 3.6.0. Hello Nikos, I had a similar problem before: Apparently some Linux graphics drivers lock up when two applications try to use GL at the same time:-/ Your QML-using application is one program, and Qt Creator requires GL for the QMLProfiler/QMLDesigner and the Welcome plugin. The first two are only loaded on demand, but the Welcome page is shown directly. To prevent that, you can try to start Qt Creator with "-noload Welcome" options. If your application starts then without freezing Qt Creator, then you can try to experiment with your graphics drivers. You should get the same freezes by starting any two openGL applications at the same time (e.g. two instances of GLXgears). Best Regards, Tobias Hi *, for completeness' sake, that issue is https://bugreports.qt.io/browse/QTBUG-49334 Best Regards, Robert -- Robert Löhning, Software Engineer - The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Re: [Qt-creator] Configuring QtCreator for android
On Tuesday 16 February 2016 10:14:33 Hunger Tobias wrote: > On So, 2016-01-17 at 11:04 +0530, RISHABH GUPTA wrote: > > > Hey, > > > > I am trying to build a cmake based project for android but on clicking > > 'run cmake ' I get "no generator selected" and there are no generators > > listed in the generator option .Could anyone please help me out with this > > ? > > I am on kubuntu 15.10 and I am using qtcreator 3.5.1 ,qt-version 5.5.1 > > > Ho, > > CMake is currently supported for desktop development only: Qt Creator needs > the "Codeblocks *" generators and there is none available for android. > AFAIK we only support qmake and qbs for android. > Hi, Actually only qmake is supported, qbs still needs more love. Cheers, BogDan. ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Re: [Qt-creator] Configuring QtCreator for android
On So, 2016-01-17 at 11:04 +0530, RISHABH GUPTA wrote: > Hey, > > I am trying to build a cmake based project for android but on clicking 'run > cmake ' I get "no generator selected" and there are no generators listed in > the generator option .Could anyone please help me out with this ? > > I am on kubuntu 15.10 and I am using qtcreator 3.5.1 ,qt-version 5.5.1 Ho, CMake is currently supported for desktop development only: Qt Creator needs the "Codeblocks *" generators and there is none available for android. AFAIK we only support qmake and qbs for android. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
[Qt-creator] passing values
Hi, How to pass the value between two dialogs? Kind Regards. P.Arun Bharathi ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Re: [Qt-creator] System manual for qt creator
> > On Dec 19, 2015, at 14:59, Petrov Gennadii wrote: > > > Hello, qt-team! > > I have some questions... > • where i can read about the architecture of the project qt > creator(class diagrams, sysmanual, etc)? There is not much, but a bit of information (e.g. about the plugin architecture) can be found here: http://doc-snapshots.qt.io/qtcreator-extending/extending-index.html A little “helloworld” plugin that adds some menu item, can also be found in the qt creator code repository, http://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/helloworld There also is a “Qt Creator Plugin” wizard in Qt Creator itself. > • which plug-ins can be disabled when building qt creator (whether > between dependence)? Where i can get information about all plugins? > • How qt and mingw version choose to build qt Creator 3.6.0 ? http://code.qt.io/cgit/qt-creator/qt-creator.git/tree/README.md > • Can i use qt creator for own needs and recreate logo, icons, main > menu etc ? Technically: The core plugin shows a basic UI with an edit mode (but without any actual editing capabilities), a search output pane (but without any actual searching capabilities), and basic menu items that one would expect for a basic editor. You can try and see for yourself with “qtcreator -noload all -load Core”. Any other functionality comes from plugins. To change anything else, you’ll need to change code. Regarding licensing I am not a lawyer, so better contact one before starting to create any work based on Qt Creator! A short and incomplete and potentially wrong summary is: Most of Qt Creator 3.6 is licensed LGPL, with some 3rdparty components that tend to be MIT- or BSD-style licensed. Basically that means that you need to make all modifications to the code that you do public. Qt Creator 3.7 and later will be licensed under GPLv3 (aside from above mentioned 3rdparty components), which basically adds the requirement to publish the code for all derived work as well. Br, Eike -- Eike Ziller, Principle Software Engineer - The Qt Company GmbH The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Re: [Qt-creator] Build QT Creator with debug symbols
> On Feb 4, 2016, at 15:07, Ion Ostafi wrote: > > Hi >I am working on a QT Creator plugin and I am trying to build my plugin in > Debug, but I have an error: > library not found for -lCore_debug. Consulting the output of the make in > terminal , I found that this library is needed in the following path > -L../qt-creator-build/bin/Qt\ Creator.app/Contents/PlugIns -lCore_debug. > It is not there, and I suppose that it is because I have built QT Creator in > release mode. Trying to build Creator in Debug mode, the QTCreator itself is > broken. How can I build creator in debug mode? It should just work. So in what way does Qt Creator in debug mode “break”? Br, Eike > or How can I build my plugin in debug mode ? > ___ > Qt-creator mailing list > Qt-creator@qt-project.org > http://lists.qt-project.org/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator