Re: [Qt-creator] Qt Creator 3.6.0. Unable to compile bare metal QBS

2015-12-16 Thread Christian Kandeler

On 12/16/2015 11:23 PM, Raivis wrote:

Hi Everyone,

I just updated to the new Qt Creator 3.6.0 to test out the new features.

I've been happily using the old Qt Creator with QBS to develop for ARM
microcontrollers mixing C++ and C together.
Unfortunately, my bare metal project stopped working and I can't seem to
figure out why is that? It looks like it compiles some files and then
gives a strange error about "arm-none-eabi-gcc.out" not being found or
something along those lines. Also I'm using windows.


The error message looks rather straightforward: qbs tried to run a 
compiler binary which does not exist. If you think that your Kit has 
valid compiler settings, you should file a bug report including more 
information, most importantly the exact settings of your toolchain as 
displayed in Tools->Options->Build&Run->Compilers.
[Wild guess: The problem could be that you are compiling C files and the 
toolchain points to a C++ compiler with an "unusual" name.]



Christian
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Building master with MSVC12 and Qt 5.5 fails

2015-12-16 Thread Jochen Becher

I have Visual Studio 2015 installed but Qt Online Maintenance Tool does
not show me a version for that compiler. Do I have to build Qt myself?

Regards, Jochen


Am Mittwoch, den 16.12.2015, 23:14 +0100 schrieb Christian Kandeler:
> On 12/16/2015 10:58 PM, Jochen Becher wrote:
> > I tried to build current master with MSVC12 and Qt 5.5.
> 
> Building Qt Creator requires at least MSVC 2013 update 2 (see the
> README 
> file in the top-level source directory).
> 
> 
> Christian
> ___
> 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] Qt Creator 3.6.0. Unable to compile bare metal QBS

2015-12-16 Thread Raivis
Hi Everyone,

I just updated to the new Qt Creator 3.6.0 to test out the new features.

I've been happily using the old Qt Creator with QBS to develop for ARM
microcontrollers mixing C++ and C together.
Unfortunately, my bare metal project stopped working and I can't seem to
figure out why is that? It looks like it compiles some files and then gives
a strange error about "arm-none-eabi-gcc.out" not being found or something
along those lines. Also I'm using windows.

Here is the full error:

22:22:26: Running steps for project blinky_template...

compiling nrf_drv_common.c

compiling nrf_delay.c

compiling gcc_startup_nrf51.s

compiling main.c

The process 'C:\Program Files (x86)\GNU Tools ARM Embedded\4.9
2015q3\bin\arm-none-eabi-gcc.out' could not be started: Process failed to
start: No such file or directory. The full command line invocation was:
"C:\Program Files (x86)\GNU Tools ARM Embedded\4.9
2015q3\bin\arm-none-eabi-gcc.out" -g -O0 -pipe "-fvisibility=default"
"-mcpu=cortex-m0" -mthumb "-mabi=aapcs" "-mfloat-abi=soft" "-std=gnu99"
-fno-builtin -fdata-sections -ffunction-sections -fno-strict-aliasing -Wall
-DDEBUG -DNRF51 -DBOARD_BLE400 -DBSP_DEFINES_ONLY "-DBUILD_NUM=0001"
"-DBOARD_REV=1" -IC:/Users/Raivis/qt_projects/nrf_blinky_example
-IC:/Users/Raivis/qt_projects/nrf_blinky_example/config
-IC:/Users/Raivis/qt_projects/nrf_blinky_example/drivers
-IC:/Users/Raivis/qt_projects/sdk_10/examples/bsp
-IC:/Users/Raivis/qt_projects/sdk_10/external/freertos/config
-IC:/Users/Raivis/qt_projects/sdk_10/external/freertos/portable/GCC/nrf51
-IC:/Users/Raivis/qt_projects/sdk_10/external/freertos/portable/CMSIS/nrf51
-IC:/Users/Raivis/qt_projects/sdk_10/external/freertos/source/include
-IC:/Users/Raivis/qt_projects/sdk_10/components/device
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/config
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/hal
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/common
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/nrf_soc_nosd
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/clock
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/uart
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/timer
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/ppi
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/gpiote
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/rng
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/rtc
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/spi_master
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/spi_slave
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/twi_master
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/wdt
-IC:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/delay
-IC:/Users/Raivis/qt_projects/sdk_10/components/libraries/util
-IC:/Users/Raivis/qt_projects/sdk_10/components/libraries/uart
-IC:/Users/Raivis/qt_projects/sdk_10/components/libraries/fifo
-IC:/Users/Raivis/qt_projects/sdk_10/components/libraries/pwm
-IC:/Users/Raivis/qt_projects/sdk_10/components/libraries/twi
-IC:/Users/Raivis/qt_projects/sdk_10/components/toolchain
-IC:/Users/Raivis/qt_projects/sdk_10/components/toolchain/gcc -c
C:/Users/Raivis/qt_projects/sdk_10/components/drivers_nrf/common/nrf_drv_common.c
-o
C:/Users/Raivis/qt_projects/nrf_blinky_example/_build/debug/qtc_nrf51822_1a2d8d44-debug/blinky.qtc-nrf51822-1a2d8d44.91c868bf/.obj/a1984a11635b8aa1/nrf_drv_common.c.o

The following products could not be built for configuration
qtc_nrf51822_1a2d8d44-debug:

blinky

Error while building/deploying project blinky_template (kit: nrf51822)

When executing step "Qbs Build"

22:22:26: Elapsed time: 00:00.



I'm honestly at the moment out of ideas what to do :) Any help would be
appreciated thanks.


Best Regards.

Raivis Strogonovs
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Building master with MSVC12 and Qt 5.5 fails

2015-12-16 Thread Christian Kandeler

On 12/16/2015 10:58 PM, Jochen Becher wrote:

I tried to build current master with MSVC12 and Qt 5.5.


Building Qt Creator requires at least MSVC 2013 update 2 (see the README 
file in the top-level source directory).



Christian
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Building master with MSVC12 and Qt 5.5 fails

2015-12-16 Thread Jochen Becher
Hi,

I tried to build current master with MSVC12 and Qt 5.5. It failed
because Q_COMPILER_INITIALIZER_LISTS is not defined (needed to compile
some classes which use QVector<> constructor with initializer lists).

Is this a bug in Qt 5.5 (MSVC12 does support initializer lists due to
Microsoft's documentation) or should QtCreator not use initializer
lists yet?

Regards, Jochen

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] issue with syntax highlighting

2015-12-16 Thread Nikolai Kosjar

Hi!


I've found some problem. There's no code highlighting under preprocessor
definition, even if definition is true.

Look screenshot 1
 before
and screenshot 2

after.


Looks like the editor document is not updated when the generic project 
defines change. Closing and re-opening the documents seems to help here.


Please create a bug report at https://bugreports.qt.io/ .


Definitions which are false are just grey
.

>
> How to correct that?

That's normal, your compiler probably behaves the same way.

Nikolai
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Fwd: issue with issue pane

2015-12-16 Thread André Hartmann

Hi Dmitry,

first of all, please keep the mailing list included, your problem might 
be interesting for others too and you get more help the more people read 
from it.


That said, sorry, the custom parser for now only scans for errors,
not warnings. I already started to extend the parser but never finished 
it (time is short...):


https://codereview.qt-project.org/#/c/80533/

If you want to take over... feel free to do so. I'd be happy to review 
your changes.


Best regards,
Andre


Hi,

Yes, custom error parser works with _*"(.*)", line (\d+): (.*)$*_ , now
it showing errors in source code and I can make jumps to line in file,
but it treats all "errors" and "warnings" like an errors. Is it possible
to configure it somehow to treat them separately (errors are red,
warnings are yellow)? I couldn't find any documentation about error parser.

Regards,

Dmitry

On 16 December 2015 at 11:51, André Hartmann mailto:andre.hartm...@iseg-hv.de>> wrote:

Hi

I have some makefile projects, too, and things work fine for me.
My compiler pattern for errors looks like this:

  ../src/main.c:708: error: xxx

while yours is

   "../src/main.c", line 708: error #20: xxx

It's quite possible, that your pattern is not recognized (correctly)
by Creators gcc error parser.

If you want to check yourself, its in gccparser.cpp, I could have a
look later today.

A possible solution is to set up a custom compiler in
Tools -> Options -> Build & Run -> Compilers -> Add -> Custom and
then set up a custom error parser (regular expression based). This
one is a bit slower but should support every possible compiler :)

Best regards,
Andre

Am 16.12.2015 um 12:17 schrieb cyb:


-- Forwarded message --
From: *cyb* mailto:cg.ve...@gmail.com>
>>
Date: 16 December 2015 at 10:48
Subject: Re: [Qt-creator] issue with issue pane
To: Ziller Eike mailto:eike.zil...@theqtcompany.com>
>>


Hi,

 ** Creator version*

QtCreator version 3.5.1, Build on Oct 15 2015, From revision
b4c52505ca

 *Which compiler is this?*

This is a Ti GCC based compiler for TMS320C55xx DSP, from Code
Composer
Studio v6. GCC error parser is working fine.

 ** How is the project organized?*

This is a makefile project, I just imported project sources and
using
qtcreator for building and editing.
*
*

 *  - Are the sources files in subdirectories?
  (Best would be to send the project file)*

Attached if it will help.

 ** Please send the contents of compile output pane too.
 *


Example compile output pane:

10:38:07: Running steps for project Vmic-DSP...

10:38:07: Starting: "c:\Program Files
(x86)\ti\ccsv6\utils\bin\gmake.exe" -k all

'Building file: ../src/main.c'

'Invoking: C5500 Compiler'

"C:/Program Files
(x86)/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55"
-v5505 --memory_model=large -g --include_path="C:/Program Files
(x86)/ti/ccsv6/tools/compiler/c5500_4.4.1/include"

--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/CELT_Codec_0.7.1/libcelt"

--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/dsplib_3.0/inc"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/inc"

--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/usbstk5505/inc"
--define=c5505 --define=DECT_FP --define=HAVE_CONFIG_H
--display_error_number --diag_warning=225 --ptrdiff_size=16
--algebraic
--asm_source=algebraic --preproc_with_compile
--preproc_dependency="src/main.pp" --obj_directory="src"
"../src/main.c"

"../src/main.c", line 708: error #20: identifier
"overflowDetected" is
undefined

"../src/main.c", line 713: error #20: identifier
"overflowDetected" is
undefined

"../src/main.c", line 496: warning #552-D: variable
"CapturedPCML" was
set but never used

2 errors detected in the compilation of "../src/main.c".


gmake: *** [src/main.obj] Error 1

Compilation failure


gmake: Target `all' not remade because of errors.

10:38:08: The process "c:\Program Files
(x86)\ti\ccsv6\utils\bin\gmake.exe" exited with code 2.

Error while building/deploying project Vmic-DSP (kit:
Ti-C55-gcc-toolset)

When executing step "Make"

10:38:08: Elapsed time: 00:01.




There also was a discussion on the forum:
http://forum.qt.io/topic/61578/qt-creator-issue-with-issue-pane

Regards,

 

Re: [Qt-creator] Fwd: issue with issue pane

2015-12-16 Thread André Hartmann

Hi

I have some makefile projects, too, and things work fine for me.
My compiler pattern for errors looks like this:

 ../src/main.c:708: error: xxx

while yours is

  "../src/main.c", line 708: error #20: xxx

It's quite possible, that your pattern is not recognized (correctly)
by Creators gcc error parser.

If you want to check yourself, its in gccparser.cpp, I could have a look 
later today.


A possible solution is to set up a custom compiler in
Tools -> Options -> Build & Run -> Compilers -> Add -> Custom and then 
set up a custom error parser (regular expression based). This one is a 
bit slower but should support every possible compiler :)


Best regards,
Andre

Am 16.12.2015 um 12:17 schrieb cyb:


-- Forwarded message --
From: *cyb* mailto:cg.ve...@gmail.com>>
Date: 16 December 2015 at 10:48
Subject: Re: [Qt-creator] issue with issue pane
To: Ziller Eike mailto:eike.zil...@theqtcompany.com>>


Hi,

** Creator version*

QtCreator version 3.5.1, Build on Oct 15 2015, From revision b4c52505ca

*Which compiler is this?*

This is a Ti GCC based compiler for TMS320C55xx DSP, from Code Composer
Studio v6. GCC error parser is working fine.

** How is the project organized?*

This is a makefile project, I just imported project sources and using
qtcreator for building and editing.
*
*

*  - Are the sources files in subdirectories?
 (Best would be to send the project file)*

Attached if it will help.

** Please send the contents of compile output pane too.
*

Example compile output pane:

10:38:07: Running steps for project Vmic-DSP...

10:38:07: Starting: "c:\Program Files
(x86)\ti\ccsv6\utils\bin\gmake.exe" -k all

'Building file: ../src/main.c'

'Invoking: C5500 Compiler'

"C:/Program Files (x86)/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55"
-v5505 --memory_model=large -g --include_path="C:/Program Files
(x86)/ti/ccsv6/tools/compiler/c5500_4.4.1/include"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/CELT_Codec_0.7.1/libcelt"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/dsplib_3.0/inc"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/inc"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/usbstk5505/inc"
--define=c5505 --define=DECT_FP --define=HAVE_CONFIG_H
--display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic
--asm_source=algebraic --preproc_with_compile
--preproc_dependency="src/main.pp" --obj_directory="src" "../src/main.c"

"../src/main.c", line 708: error #20: identifier "overflowDetected" is
undefined

"../src/main.c", line 713: error #20: identifier "overflowDetected" is
undefined

"../src/main.c", line 496: warning #552-D: variable "CapturedPCML" was
set but never used

2 errors detected in the compilation of "../src/main.c".


gmake: *** [src/main.obj] Error 1


Compilation failure


gmake: Target `all' not remade because of errors.

10:38:08: The process "c:\Program Files
(x86)\ti\ccsv6\utils\bin\gmake.exe" exited with code 2.

Error while building/deploying project Vmic-DSP (kit: Ti-C55-gcc-toolset)

When executing step "Make"

10:38:08: Elapsed time: 00:01.




There also was a discussion on the forum:
http://forum.qt.io/topic/61578/qt-creator-issue-with-issue-pane

Regards,

Dmitry

On 16 December 2015 at 10:25, Ziller Eike mailto:eike.zil...@theqtcompany.com>> wrote:


> On Dec 16, 2015, at 10:24 AM, cyb mailto:cg.ve...@gmail.com>> wrote:
>
> Hi, there's an issue with issue pane.
>
> Everything should be clear from next screenshot
>
> Gcc error parser is working, there's a line and file but it cannot take me to issue 
and not showing issue in source file. Maybe it because I used "Import project" but 
it should work in theory. Is this a my bug or feature was not implemented yet?

Qt Creator thinks that your file is called

main.c”

with a “ at the end.

What’s your compile output? (contents of “Compile Output” pane)
What compiler do you use on what platform?
Br, Eike

 >
 > Thanks,
 >
 > Dmitry
 >
 > ___
 > Qt-creator mailing list
 > Qt-creator@qt-project.org 
 > http://lists.qt-project.org/mailman/listinfo/qt-creator

--
Eike Ziller, Senior 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






--
Best regards / Mit freundlichen Grüßen
André Hartmann, Dipl.-Ing. (FH)
Software Project Manager

iseg Spezialelektronik GmbH |  phone: ++49 (0)351 26996-43
Bautzner Landstr. 23|  fax:   ++49 (0)351 26996-21
D-01454 Radeberg / Rossendorf   |  web:   www.iseg-hv.com

Geschäftsführer / Managing director: Dr. F. Gleisberg, Dr. J. Pöthig
Amtsgericht / Lower district court: Dresde

Re: [Qt-creator] issue with issue pane

2015-12-16 Thread Ziller Eike

> On Dec 16, 2015, at 10:24 AM, cyb  wrote:
> 
> Hi, there's an issue with issue pane.
> 
> Everything should be clear from next screenshot
> 
> Gcc error parser is working, there's a line and file but it cannot take me to 
> issue and not showing issue in source file. Maybe it because I used "Import 
> project" but it should work in theory. Is this a my bug or feature was not 
> implemented yet? 

Qt Creator thinks that your file is called

main.c”

with a “ at the end.

What’s your compile output? (contents of “Compile Output” pane)
What compiler do you use on what platform?
Br, Eike

> 
> Thanks,
> 
> Dmitry
> 
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

-- 
Eike Ziller, Senior 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] issue with issue pane

2015-12-16 Thread André Hartmann

Hi Dmitry,

Looks strange, warnings are displayed as errors, and it seems Creator 
can't locate the file for the error. Please tell us more:


* Creator version
* Which compiler is this?
* How is the project organized?
  - Are the sources files in subdirectories?
(Best would be to send the project file)
  - Which is the working directory of the compiler?
* Please send the contents of compile output pane too.
  Are the errors marked red there?

Best regards,
Andre

Am 16.12.2015 um 10:24 schrieb cyb:

Hi, there's an issue with issue pane.

Everything should be clear from next screenshot


Gcc error parser is working, there's a line and file but it cannot take
me to issue and not showing issue in source file. Maybe it because I
used *"Import project"* but it should work in theory. Is this a my bug
or feature was not implemented yet?

Thanks,

Dmitry



___
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] issue with syntax highlighting

2015-12-16 Thread cyb
Hi,

I've found some problem. There's no code highlighting under preprocessor
definition, even if definition is true.

Look screenshot 1

before and screenshot 2

after.

Definitions which are false are just grey

.

How to correct that?

Discussion
http://forum.qt.io/topic/61621/qt-creator-issue-with-syntax-highlighting

Thanks,

Dmitry
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] stop button doesn't stop the process

2015-12-16 Thread cyb
Hi,

I'm using an external tool for debugging, basically it's just a batch file
which is running some java script which is working with proprietary
debugger. Anyway when I'm running it in Windows 7 shell everything is fine,
it works and if you will close a terminal debug session (by closing a
window or ctrl+c) will be terminated normally, so script and stuff works
fine. But if you will try to run it in qt creator console and push *"stop"*
button to terminate debug session qt creator won't close session and it
will be still in processes so it will cause a debugger fault on the next
run. So why stop button doesn't stop a process? I still can debug it in
terminal window but in console would be better.

Thanks,

Dmitry
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] issue with issue pane

2015-12-16 Thread cyb
Hi, there's an issue with issue pane.

Everything should be clear from next screenshot


Gcc error parser is working, there's a line and file but it cannot take me
to issue and not showing issue in source file. Maybe it because I used *"Import
project"* but it should work in theory. Is this a my bug or feature was not
implemented yet?

Thanks,

Dmitry
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Qml Designer does not always show QQuickItem

2015-12-16 Thread Hartmann Thomas
Hi,

I changed the .metainfo file to just this:

import QtQuick.tooling 1.2

// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
// 'qmlplugindump.exe -v bug.qmlfun 1.0'

Module {
Component {
name: "QmlFun"
defaultProperty: "data"
prototype: "QQuickItem"
exports: ["CoreFun 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "text"; type: "string" }
Signal {
name: "textChanged"
Parameter { name: "aText"; type: "string" }
}
Method {
name: "setText"
Parameter { name: "aText"; type: "string" }
}
Method { name: "update" }
}
}

The raise condition seems to be gone then and Fun always shows up in the 
navigator.
If you do not want to install the QML plugin to Qt you can define 
QML_IMPORT_PATH in the .pro file instead and deploy/build your plugin 
accordingly.
You can e.g. add QML_IMPORT_PATH = $$PWD/imports to the .pro file and 
build/deploy the plugin to imports/bug/qmlfun.

Kind Regards,
Thomas Hartmann


From: Wolfgang Baron 
Sent: Tuesday, December 15, 2015 3:24 PM
To: Hartmann Thomas
Cc: qt-creator@qt-project.org
Subject: Re: Re: [Qt-creator] Qml Designer does not always show QQuickItem

Hi,

concerning the presentation problem of QmlDesigner in Qt-Creator, I have 
created an isolated project with just that problem in it, a few screen shots 
and instructions as an attachment. Please have a look and tell me I am seeing 
ghosts. I have tried this on a number of systems with the same result 
everywhere.

> since your object does not show up in the navigator, but does show up
> in the state editor, I am pretty sure the meta information for your
> class is somehow messed up.
> Typically the meta info (type hierarchy properties etc...) is provided
> by a plugins.qmltypes file as part of a QML plugin.
> To me it looks like the code model/meta info system does not know your
> object is actually an item. We only show items in the navigator
> and also the form editor will only contain items that are identified
> as items by the code model.

I have included the metainfo in the attachment and it look ok to me.

In order for everyone on the list to see what the problem is about without 
having to open the attacment (QmlFun.7z), I copied the README here:

Demo project for showing a bug in QmlDesigner/qml2puppet in Qt-Creator-3.5.1
based on Qt-5.5.1 and an unknown number of releases before. I have tested
the project on Ubuntu Wily Werewolf and Microsoft Windows 7 (32 bit) using
msvc2010.

Compile the project and install the plugin. This seems to mean, that you have
to install it in $QT_DIR/bin/qml/bug/qmlfun in most cases. Look at
"install.sh" for ideas.

One would think it should not matter where to install the plugin, however
most setups will fail on this (Qt on the development machine vs. copying
installation files to a client machine, running the downloaded Qt-Creator
vs a custom built Qt-Creator etc.). This is problem to talk about some
other time, though.

On Windows, the installed plugin should look like the following list:

bug/qmlfun/designer/fun.metainfo
bug/qmlfun/designer/images/fun.png
bug/qmlfun/designer/images/noFun.png
bug/qmlfun/Fun.qml
bug/qmlfun/FunRep.qml
bug/qmlfun/plugins.qmltypes
bug/qmlfun/QFun.qml
bug/qmlfun/qmldir
bug/qmlfun/QmlFun.dll

The generated plugins.qmltypes on Linux is different from the one generated
on Microsoft Windows. The Linux version references QtQuick, whereas the
Microsoft Windows version contains a copy of used parent classes. Exchanging
the versions does not alter the behaviour (works either way). I prefer the
Linux version, but I wonder, why the other version exists at all...

Restart Qt-Creator. Load TestQmlFun.qml and press "Design". Now you will
probably see what can be found in the screenshots/ folder. Continue quitting,
restarting Qt-Creator and loading the document, until all items are shown
correctly (may take 3-10 times or more). Now you start to consider, that
there might be a glitch in Qt-Creator or qml2puppet (I don't know,
I have not looked into the sources yet, it may aswell be something
completely different). You will almost always see all items in the state
view. If the central area shows all item, they will be visible in the
navigator as well and vice versa.

Qmlscene will always show all items correctly.

Thanks a lot for any insight or maybe even a fix,

Wolfgang Baron
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Qml Designer does not always show QQuickItem

2015-12-16 Thread Hartmann Thomas
Hi,

> The Linux version references QtQuick, whereas the
> Microsoft Windows version contains a copy of used parent classes. 

I think this is a bug in the qmldumper.

>Qt-Creator and loading the document, until all items are shown
> correctly (may take 3-10 times or more)

Which leads to a raise condition in the code model.

> If the central area shows all item, they will be visible in the
> navigator as well and vice versa.

This is a clear indication that the qml2puppet is working well. If things show 
up in the state editor then the puppet can obviously instantiate the item in 
your plugin.
But depending on the race condition in the code model the items are not derived 
from Qt Quick most of the time. Such items we do not show. You have to fix the 
.metainfo file.
I will have a look at the project and then can send you the correct .metainfo 
file.

Kind Regards,
Thomas Hartmann





From: Wolfgang Baron 
Sent: Tuesday, December 15, 2015 3:24 PM
To: Hartmann Thomas
Cc: qt-creator@qt-project.org
Subject: Re: Re: [Qt-creator] Qml Designer does not always show QQuickItem

Hi,

concerning the presentation problem of QmlDesigner in Qt-Creator, I have 
created an isolated project with just that problem in it, a few screen shots 
and instructions as an attachment. Please have a look and tell me I am seeing 
ghosts. I have tried this on a number of systems with the same result 
everywhere.

> since your object does not show up in the navigator, but does show up
> in the state editor, I am pretty sure the meta information for your
> class is somehow messed up.
> Typically the meta info (type hierarchy properties etc...) is provided
> by a plugins.qmltypes file as part of a QML plugin.
> To me it looks like the code model/meta info system does not know your
> object is actually an item. We only show items in the navigator
> and also the form editor will only contain items that are identified
> as items by the code model.

I have included the metainfo in the attachment and it look ok to me.

In order for everyone on the list to see what the problem is about without 
having to open the attacment (QmlFun.7z), I copied the README here:

Demo project for showing a bug in QmlDesigner/qml2puppet in Qt-Creator-3.5.1
based on Qt-5.5.1 and an unknown number of releases before. I have tested
the project on Ubuntu Wily Werewolf and Microsoft Windows 7 (32 bit) using
msvc2010.

Compile the project and install the plugin. This seems to mean, that you have
to install it in $QT_DIR/bin/qml/bug/qmlfun in most cases. Look at
"install.sh" for ideas.

One would think it should not matter where to install the plugin, however
most setups will fail on this (Qt on the development machine vs. copying
installation files to a client machine, running the downloaded Qt-Creator
vs a custom built Qt-Creator etc.). This is problem to talk about some
other time, though.

On Windows, the installed plugin should look like the following list:

bug/qmlfun/designer/fun.metainfo
bug/qmlfun/designer/images/fun.png
bug/qmlfun/designer/images/noFun.png
bug/qmlfun/Fun.qml
bug/qmlfun/FunRep.qml
bug/qmlfun/plugins.qmltypes
bug/qmlfun/QFun.qml
bug/qmlfun/qmldir
bug/qmlfun/QmlFun.dll

The generated plugins.qmltypes on Linux is different from the one generated
on Microsoft Windows. The Linux version references QtQuick, whereas the
Microsoft Windows version contains a copy of used parent classes. Exchanging
the versions does not alter the behaviour (works either way). I prefer the
Linux version, but I wonder, why the other version exists at all...

Restart Qt-Creator. Load TestQmlFun.qml and press "Design". Now you will
probably see what can be found in the screenshots/ folder. Continue quitting,
restarting Qt-Creator and loading the document, until all items are shown
correctly (may take 3-10 times or more). Now you start to consider, that
there might be a glitch in Qt-Creator or qml2puppet (I don't know,
I have not looked into the sources yet, it may aswell be something
completely different). You will almost always see all items in the state
view. If the central area shows all item, they will be visible in the
navigator as well and vice versa.

Qmlscene will always show all items correctly.

Thanks a lot for any insight or maybe even a fix,

Wolfgang Baron
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator