[Interest] How to disable "Semantic Issue" marker in qtcreator ?

2020-11-23 Thread Martin Koller
Hi,

I'm using qtcreator only for debugging. I always get "Semantic issue" markers
beside the source code line numbers, which interferes with the breakpoint 
markers.
See attached screenshot. One can not easily see what is a breakpoint.
I want to get rid of the display of the "Semantic issue" markers completely
but find no setting which allows to do so.
Any hint ?
-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Frühstück, Geschenkideen, Accessoires, Kulinarisches: www.lillehus.at___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] How to load 3D scene with QSceneLoader

2018-09-13 Thread Martin Koller
On Freitag, 14. September 2018 05:15:53 CEST dns.bot...@gmail.com wrote:
> Hi,
> 
> This was it. I thought QUrl would default to local path. Now I seem to
> remember to have made this assumption in the past as well and then be
> suprised. Is should start to learn. :)


Alternatively use QUrl::fromLocalFile(const QString )

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.lillehus.at


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt-3D scene file formats

2018-03-16 Thread Martin Koller
On Freitag, 16. März 2018 13:43:53 CET Mike Krus wrote:
> Hi
> 
> > On 16 Mar 2018, at 08:04, Martin Koller <kol...@aon.at> wrote:
> > 
> > What are the possible file formats the QSceneLoader can load (Qt 5.10, 
> > Linux openSuse 42.3) ?
> > Is blender among them ?
> SceneLoader uses Assimp internally for doing the actual parsing, please see 
> [1] for the list of
> formats that supports.
> 
> Mike
> 
> [1] https://github.com/assimp/assimp#supported-file-formats

Thanks. This is what I already found, but Qt Support told me I'm wrong and the 
QSceneLoader can not load blender files.
So, who is right ?

BTW: The link in the Qt documentation 
http://doc.qt.io/qt-5/qt3drender-qsceneloader.html
to the list of formats is stale.
It points to http://www.assimp.org/main_features_formats.html

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.lillehus.at


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt-3D scene file formats

2018-03-16 Thread Martin Koller
What are the possible file formats the QSceneLoader can load (Qt 5.10, Linux 
openSuse 42.3) ?
Is blender among them ?
-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.lillehus.at


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt5 C++ Widgets and Animated ListView

2016-05-24 Thread Martin Koller
On Tuesday 17 May 2016 21:21:14 Simone wrote:
> You mean that with QListView i have natively the scrolling by finger with 
> deceleration and bouncing effect? I need exactly the same result as the QML 
> ListView component.
> 
> If yes it seems wonderful to me..
> Do you know some examples on the web?

Just use QScroller for this.
E.g.
in the constructor of your QListView:

QScroller::grabGesture(this, QScroller::TouchGesture);

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.lillehus.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] qDebug under Windows

2015-08-10 Thread Martin Koller
On Monday 10 August 2015 14:40:58 Jérôme Godbout wrote:
 Hi,
 I have some problem under Windows to redirect the qDebug() default output,
 it seem to go to the Windows debugger output and I would like it to be
 sent to stdcerr instead. How/where can I change that for Windows (work
 normally under Linux)?
 
 I think I will have to recompile Qt to do this with the CONFIG option as
 console I guess. Any way to redirect this otherwise?

I think if your win application is a console application, it will instead 
already
print the output to stderr or stdout (don't know).

You can also redirect qDebug() messages:

void myQtMessageOutput(QtMsgType type, const QMessageLogContext context, const 
QString msg)
{
  // whatever shall be done with the message
}

main()
{
  qInstallMessageHandler(myQtMessageOutput);
...
}


-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.lillehus.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] How to use QtPositioning on Android

2014-08-12 Thread Martin Koller
I'm trying to use QGeoPositionInfoSource on Android with Qt5.3.1
built on a Linux Box using Ministro.

When I do this with a simple test program using qtcreator,
QGeoPositionInfoSource::availableSources() shows android, which is fine.
However, testing with our large application, it gives an empty list.

As the large app does neither use qtcreator nor qmake (we use cmake),
can someone tell me what I need to configure (AndroidManifest.xml or any other 
.xml file) so that my app shows
the available android positions plugin ?

Note that I want to use Ministro.
I see in the test app's AndroidManifest.xml file the following lines, however
I can not find any documentation about what these lines are good for
(especially the ones mentioning QtSensors.jar and QtPositioning.jar).
What do they do and how do I need to use them.

meta-data android:name=android.app.use_local_qt_libs 
android:value=0/
meta-data android:name=android.app.libs_prefix 
android:value=/data/local/tmp/qt//
meta-data android:name=android.app.load_local_libs 
android:value=plugins/platforms/android/libqtforandroid.so:plugins/sensors/libqtsensors_android.so:plugins/position/libqtposition_android.so/
meta-data android:name=android.app.load_local_jars 
android:value=jar/QtAndroid.jar:jar/QtAndroidAccessibility.jar:jar/QtAndroid-bundled.jar:jar/QtAndroidAccessibility-bundled.jar:jar/QtSensors.jar:jar/QtSensors-bundled.jar:jar/QtPositioning.jar:jar/QtPositioning-bundled.jar/
meta-data android:name=android.app.static_init_classes 
android:value=org.qtproject.qt5.android.sensors.QtSensors:org.qtproject.qt5.android.sensors.QtSensors:org.qtproject.qt5.android.positioning.QtPositioning:org.qtproject.qt5.android.positioning.QtPositioning/

It's also not clear if these lines are used at all when using Ministro.
Thanks.

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-15 Thread Martin Koller
On Monday 14 July 2014 21:47:00 Konstantin Tokarev wrote:
 
 14.07.2014, 13:39, Martin Koller kol...@aon.at:
  On Monday 14 July 2014 09:11:06 Rutledge Shawn wrote:
   On 12 Jul 2014, at 10:03 AM, Martin Koller wrote:
   Hi,
 
   is there any possibility to use an enum in the Q_ENUMS macro when the 
  enum is not
   defined in a QObject derived class ?
   (Specifically I'm trying to do that with QSslError::SslError)
   The Qt namespace has a lot of enums like that.  The trick there is to get 
  moc to pretend that the namespace is actually a class.
 
   src/corelib/global/qnamespace.h
 
  This is not what I meant.
  The Qt namespace defines enums on its own and the MOC-Hack (#if 
  defined(Q_MOC_RUN)) just makes sure that the enums
  can be used in Q_ENUMS
 
  What I need is a FOREIGN enum, e.g. one which is already availabe in a 
  different Qt header, but the enum is not
  part of a QObject derived class.
 
  E.g.
  #include QSslError
 
  class MyClass : public QObject
  {
Q_OBJECT
Q_ENUMS(QSslError::SslError)   // does not work
  };
 
  #include moc_test.cxx
 
  In file included from test.cxx:9:0:
  moc_test.cxx:66:10: error: ‘staticMetaObject’ is not a member of ‘QSslError’
   QSslError::staticMetaObject,
 
 You can add fake poperty with type QSslError::SslError, and access enum via 
 QMetaProperty::enumerator()

That does not work.
The doc says: The enumeration type must be registered with the Meta-Object 
System using the Q_ENUMS() macro.
but doing so leads to above compile error.
Not using Q_ENUMS(QSslError::SslError) in MyClass does also not work, as 
QSslError::SslError is an enum
from a class which is not QObject derived.
The doc says: Had the enumeration type been declared in another class, its 
fully qualified name (i.e., OtherClass::Priority) would be required, and that 
other class would also have to inherit QObject and register the enumeration 
type there using the Q_ENUMS() macro.

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-14 Thread Martin Koller
On Monday 14 July 2014 09:11:06 Rutledge Shawn wrote:
 
 On 12 Jul 2014, at 10:03 AM, Martin Koller wrote:
 
  Hi,
  
  is there any possibility to use an enum in the Q_ENUMS macro when the enum 
  is not
  defined in a QObject derived class ?
  (Specifically I'm trying to do that with QSslError::SslError)
 
 The Qt namespace has a lot of enums like that.  The trick there is to get moc 
 to pretend that the namespace is actually a class.
 
 src/corelib/global/qnamespace.h

This is not what I meant.
The Qt namespace defines enums on its own and the MOC-Hack (#if 
defined(Q_MOC_RUN)) just makes sure that the enums
can be used in Q_ENUMS

What I need is a FOREIGN enum, e.g. one which is already availabe in a 
different Qt header, but the enum is not
part of a QObject derived class.

E.g.
#include QSslError

class MyClass : public QObject
{
  Q_OBJECT
  Q_ENUMS(QSslError::SslError)   // does not work
};

#include moc_test.cxx

In file included from test.cxx:9:0:
moc_test.cxx:66:10: error: ‘staticMetaObject’ is not a member of ‘QSslError’
 QSslError::staticMetaObject,
  ^

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Q_ENUMS with foreign enum ?

2014-07-12 Thread Martin Koller
Hi,

is there any possibility to use an enum in the Q_ENUMS macro when the enum is 
not
defined in a QObject derived class ?
(Specifically I'm trying to do that with QSslError::SslError)

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] STILL LOOKING for a QPA

2014-05-24 Thread Martin Koller
On Tuesday 20 May 2014 09:30:23 Thiago Macieira wrote:

  divThough I would ask how unstable is it 18 months in?/div
 
 It's stable.

sorry, no. it isn't.
I'm wringin a QPA plugin and the same source does not compile with 5.2.1 and 
5.3.0 ...

And for the part: the docs is in the code
To be honest - this is a joke.
There is _something_ in the source but far from comprehensive enough.
It is very often required to check the other plugins to see how did they do it
without really knowing why did they do it that way.

So developing a QPA plugin is sometimes just a trial and error thing ...
-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\- against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Best practice for properties, QAbstractListModel with a QListQObject* and a Quick2 view

2013-12-19 Thread Martin Koller
On Wednesday 18 December 2013 14:58:17 Jan Kundrát wrote:
 On Wednesday, 18 December 2013 11:59:15 CEST, Ola Røer Thorsen wrote:
  However I get problems when I delete objects from the list model. The
  delegates are deleted later than the actual objects, so I get warnings 
 from
  QML on the console (saying myObject is null). These seem harmless enough,
  but I would like to avoid having any warnings at all.
 
 When working with the QAbstractItemModel, items can only be deleted via 
 resetting the model, or when removing rows/columns. The row/column removal 
 shall happen in three phases:
 
 1) call beginRemoveRows
 2) remove the internal representation, freeing the MyObject instances
 3) call endRemoveRows

A related question:

is it mandatory to have exactly this order or can I do:

beginRemoveRows(... row1, row1);
beginRemoveRows(... row17, row17);
...
endRemoveRows();
endRemoveRows();

?

If yes, would all row numbers correspond to the number BEFORE I removed any row 
?

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Best practice for properties, QAbstractListModel with a QListQObject* and a Quick2 view

2013-12-19 Thread Martin Koller
On Thursday 19 December 2013 16:53:31 Jan Kundrát wrote:
 On Thursday, 19 December 2013 16:34:01 CEST, Martin Koller wrote:
  beginRemoveRows(... row1, row1);
  beginRemoveRows(... row17, row17);
  ...
  endRemoveRows();
  endRemoveRows();
 
 You cannot do this.

I'm curious: do you know why the implementation of beginRemoveRows() uses a 
QStack/push() then ?

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Gestures

2013-12-18 Thread Martin Koller
On Wednesday 18 December 2013 14:31:26 Igor Mironchik wrote:
 Hi.
 
 Can anybody explain me the difference between QPanGesture and QSwipeGesture.
 
 I understand difference in the classe's interfaces but I can't 
 understand the difference in the user's actions to trigger them.

I think panning is when you move something without releasing the finger
(something like scrolling)
swipe is when you quickly move the finger on the touch device and then 
release it again.
So probably it's really the speed (+ release) which detects a swipe

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QPA plugin and crash in effectiveWinId()

2013-09-29 Thread Martin Koller
Hi,

I'm currently implementing a QPA plugin for Qt-4.8.4.
What I now see is a crash (ASSERT) in QWidget::effectiveWinId() as 
nativeParentWidget() returns 0.
This is happening when I send mouse move events to Qt and the cursors leaves a 
widget:

#5  0x76541555 in qt_assert (assertion=0x7789f049 realParent, 
file=
0x7789ee50 kernel/qwidget.cpp, line=2620) at global/qglobal.cpp:1996
#6  0x770f63f7 in QWidget::effectiveWinId (this=0x674f20) at 
kernel/qwidget.cpp:2620
#7  0x77138767 in qt_qpa_set_cursor (w=0x674f20, force=false) at 
kernel/qwidget_qpa.cpp:865
#8  0x7713623b in QWidgetPrivate::unsetCursor_sys (this=0x6753c0) at 
kernel/qwidget_qpa.cpp:258
#9  0x770fb337 in QWidget::unsetCursor (this=0x674f20) at 
kernel/qwidget.cpp:5115
#10 0x775fb56e in QToolBar::event (this=0x674f20, event=0x7fffcb10) 
at widgets/qtoolbar.cpp:1183


It's not clear to me if I'm doing something wrong or if it's a bug in Qt.

What do I need to do in my QPA plugin so that a widgets has a 
nativeParentWidget() ?

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QPA plugin and crash in effectiveWinId()

2013-09-29 Thread Martin Koller
On Sunday 29 September 2013 15:20:09 Martin Koller wrote:
 Hi,
 
 I'm currently implementing a QPA plugin for Qt-4.8.4.
 What I now see is a crash (ASSERT) in QWidget::effectiveWinId() as 
 nativeParentWidget() returns 0.
 This is happening when I send mouse move events to Qt and the cursors leaves 
 a widget:
 
 #5  0x76541555 in qt_assert (assertion=0x7789f049 realParent, 
 file=
 0x7789ee50 kernel/qwidget.cpp, line=2620) at global/qglobal.cpp:1996
 #6  0x770f63f7 in QWidget::effectiveWinId (this=0x674f20) at 
 kernel/qwidget.cpp:2620
 #7  0x77138767 in qt_qpa_set_cursor (w=0x674f20, force=false) at 
 kernel/qwidget_qpa.cpp:865
 #8  0x7713623b in QWidgetPrivate::unsetCursor_sys (this=0x6753c0) at 
 kernel/qwidget_qpa.cpp:258
 #9  0x770fb337 in QWidget::unsetCursor (this=0x674f20) at 
 kernel/qwidget.cpp:5115
 #10 0x775fb56e in QToolBar::event (this=0x674f20, 
 event=0x7fffcb10) at widgets/qtoolbar.cpp:1183
 
 
 It's not clear to me if I'm doing something wrong or if it's a bug in Qt.
 
 What do I need to do in my QPA plugin so that a widgets has a 
 nativeParentWidget() ?

It seems I solved it now. Looking into the vnc plugin, I see that it just 
generates non-zero winIds
in a derived class of QPlatformWindow:
  static QAtomicInt winIdGenerator(1);
  windowId = winIdGenerator.fetchAndAddRelaxed(1);

and returns this in
virtual WId winId() const { return windowId; }

So I also implemented my own QPlatformWindow derived class.

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt::Alignment and MetaObject System

2013-08-30 Thread Martin Koller
On Thursday 29 August 2013 19:09:52 Giuseppe D'Angelo wrote:
 Il 29/08/2013 17:11, Martin Koller ha scritto:
  However how can I do the same with this Qt::AlignmentFlag enum which is not 
  defined inside a QObject ?
 
 There's a trick in place in qnamespace.h:
 
 http://code.woboq.org/qt5/qtbase/src/corelib/global/qnamespace.h.html#50
 
 So: most(all?) enums under the Qt namespace gets actually extracted by 
 moc, and placed in a special metaobject, accessible in any QObject 
 subclass (it's protected): QObject::staticQtMetaObject.
 
 So you can use something like
 
   int index = staticQtMetaObject.indexOfEnumerator(Alignment);
   QMetaEnum me = staticQtMetaObject.enumerator(index);
   ...
 
 in a QObject subclass to get the meta information about Qt::Alignment.

Thanks to this trick - works great!

A pitty it's not documented ...

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest