bupticybee / TexasSolver

🚀 A very efficient Texas Holdem GTO solver :spades::hearts::clubs::diamonds:
https://bupticybee.github.io/texassolver_page
GNU Affero General Public License v3.0
1.65k stars 295 forks source link

Warning: QMetaObject::connectSlotsByName: No matching signal for on_XXX_YYY() #183

Closed ruimaciel closed 8 months ago

ruimaciel commented 9 months ago

The following warnings are emitted when launching the app:

16:22:32: Starting /home/rui/develop/C++/TexasSolver/build/TexasSolverGui-Desktop_Qt_5_15_2_GCC_64bit/Debug/TexasSolverGui...
Warning: QMetaObject::connectSlotsByName: No matching signal for on_import_params() ((null):0, (null))
Warning: QMetaObject::connectSlotsByName: No matching signal for on_export_params() ((null):0, (null))
Warning: QMetaObject::connectSlotsByName: No matching signal for on_clear_all() ((null):0, (null))
Warning: QMetaObject::connectSlotsByName: No matching signal for on_ip_range(QString) ((null):0, (null))

These warnings are caused by the slots' naming convention conflicting with Qt's autoconnect feature. See this Qt forum post.

The goal of this issue is to prevent the app from emitting these warnings.

bupticybee commented 8 months ago

I see, thanks for the knowledge and the fix~