Re: [Qt-creator] HowTo get rid of QNetworkConfigurationManager-is-deprecated-warnings

2021-06-16 Thread Giuseppe D'Angelo via Qt-creator

Hi,

Il 16/06/21 22:24, ekke ha scritto:

How can I disable deprecation warnings altogether ?

A workaround could be to disable them and only from time to time enable 
and check if there are deprecations to fix.




IIRC, by defining QT_NO_DEPRECATED_WARNINGS.

HTH,
--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts



smime.p7s
Description: Firma crittografica S/MIME
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] HowTo get rid of QNetworkConfigurationManager-is-deprecated-warnings

2021-06-16 Thread Giuseppe D'Angelo via Qt-creator

Hi,

On 16/06/2021 19:09, ekke wrote:
Of course I would like to get all other deprecation warnings to fix 
them, but for QNCM and network accessibility there is no way to fix them 
because the new QNetworkInformation class doesn’t exist in 5.15.


Found https://www.kdab.com/un-deprecate-qt-project/ 



It seems we have many ways to deprecate, but not to undeprecate a 
specific one ? I’m looking for something similar to Q_UNUSED() to get 
rid of a -Wunused-parameter warning




Just a random note: that blog post of mine is a bit outdated. A few 
things have been changed in Qt's deprecation mechanisms in the meanwhile
(warnings have been made versioned, deprecation warnings are enabled by 
default, and so on).


Anyway: there's unfortunately no solution to your issue except for 
disabling deprecating warnings altogether. For the record, I did propose 
to have special deprecation markers (special in the sense that you could 
enable/disable them independently from the other deprecation warnings) 
in Qt 5.15 for:


1) APIs that are deprecated in Qt 5 but without a replacement in Qt 5 
itself (but eventually only in Qt 6), like indeed QNCM (AFAICT), so for 
which having a warning is "useless" as there's nothing one can do about it;


2) APIs that exist in Qt 5.15.x only to ease the transition towards Qt 
6, i.e. are only meant to be used during a port, and absolutely not for 
"ordinary" development (like a lot of QStringView-related functionality 
in 5.15 which has been implemented by doing view.toString().foo(), i.e. 
throwing QStringView advantages out of the window).



The patches unfortunately were not merged before 5.15 was made closed 
source, so I gave up. You can find them in the relation chain here.


https://codereview.qt-project.org/c/qt/qtbase/+/324103/3


My 2 c,
--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts



smime.p7s
Description: S/MIME Cryptographic Signature
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Find references of virtual functions?

2020-09-11 Thread Giuseppe D'Angelo via Qt-creator

Il 11/09/20 22:59, Murphy, Sean ha scritto:

Is there any way in Qt Creator to only show me the places where Grandchild::foo() is 
called?  Right now, I'm finding that even if I go to grandchild.cpp, put my cursor on 
void Grandchild::foo(), and then select "Find Reference to Symbol Under 
Cursor", it shows me every instance of EVERY foo() called anywhere in the program, 
including the declarations/definitions of Abstract::foo(), Base::foo() and Child::foo(), 
which I don't care about at the moment.


By "every foo()" do you mean even the ones completely unrelated to your 
class hierarchy, or all the foo() in the hierarchy?


Anyhow, given it's a virtual, how can you know at compile time if you're 
calling GrandChild::foo() or not?


Abstract *blah = getFoo();
blah->foo(); // might call Grandchild::foo(), or not

My 2 c,

--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts



smime.p7s
Description: Firma crittografica S/MIME
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Deprecation warnings

2019-11-08 Thread Giuseppe D'Angelo via Qt-creator

Il 08/11/19 14:31, Christian Kandeler ha scritto:

with recent Qt versions, we are getting these annoying warnings when building 
Qt Creator:

src/libs/utils/tooltip/tips.cpp: In function ‘int 
Utils::Internal::screenNumber(const QPoint&, QWidget*)’:
src/libs/utils/tooltip/tips.cpp:304:51: warning: ‘bool 
QDesktopWidget::isVirtualDesktop() const’ is deprecated: Use 
QScreen::virtualSiblings() of primary screen [-Wdeprecated-declarations]
src/libs/utils/tooltip/tips.cpp:305:57: warning: ‘int 
QDesktopWidget::screenNumber(const QPoint&) const’ is deprecated: Use 
QGuiApplication::screenAt() [-Wdeprecated-declarations]
src/libs/utils/tooltip/tips.cpp: In function ‘QRect 
Utils::Internal::screenGeometry(const QPoint&, QWidget*)’:
src/libs/utils/tooltip/tips.cpp:313:79: warning: ‘const QRect 
QDesktopWidget::availableGeometry(int) const’ is deprecated: Use 
QGuiApplication::screens() [-Wdeprecated-declarations]
src/libs/utils/tooltip/tips.cpp:314:72: warning: ‘const QRect 
QDesktopWidget::screenGeometry(int) const’ is deprecated: Use 
QGuiApplication::screens() [-Wdeprecated-declarations]

I have no clue what this code does, nor do I see a way to even 
semi-mechanically switch to the suggested replacements.
Does anyone know how to get the desired behavior without using deprecated API?


The wrong deprecation APIs (the unversioned ones) have been used in 
qtbase when deprecating these methods. Please open a bug against Qt 5.14 
(?) to mark them with the versioned markers.


HTH,
--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts



smime.p7s
Description: Firma crittografica S/MIME
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] How to control font in compile output

2019-11-06 Thread Giuseppe D'Angelo via Qt-creator

Il 29/10/19 10:09, Eike Ziller ha scritto:

Somehow related, is there a way to reset that font size to the defaults? 
(Similar to ctrl+0 for the normal text editor)

For me Ctrl+0 works as expected in the output panes.


Do you happen to know if this added recently? (On 4.9.1, cannot update 
right now...).


Thanks,

--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts



smime.p7s
Description: Firma crittografica S/MIME
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] How to control font in compile output

2019-10-28 Thread Giuseppe D'Angelo via Qt-creator

On 28/10/2019 20:21, Jason H wrote:
To be fair, it's not clear what those +- icons refer to, they are 
adjacent to the filter combo. They do have hover tool tips, which help. 
I think an argument could be made for moving them by the Maximize 
button? Then where they are, should be the  < > buttons, which would 
follow the Find / Replace mini pane precedent.


Somehow related, is there a way to reset that font size to the defaults? 
(Similar to ctrl+0 for the normal text editor)


Thanks,
--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts



smime.p7s
Description: S/MIME Cryptographic Signature
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Debugging a specific program in a project with subprojects

2018-06-11 Thread Giuseppe D'Angelo via Qt-creator

Il 11/06/2018 23:24, Petric Frank ha scritto:

If i simply go to the main menu and select debug the question is which one of
the apps it will execute to debug ?
Followup: how to set the app to debug ?


Click on button 2 and select the target to run/debug, then you can just 
run/debug it:



https://doc.qt.io/qtcreator/images/qtcreator-breakdown.png


HTH,

--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts



smime.p7s
Description: Firma crittografica S/MIME
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator