Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Overloaded signals, QtCreator doesn't warn about them before compile
Forum Updated to NodeBB v4.3 + New Features

Overloaded signals, QtCreator doesn't warn about them before compile

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 601 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cdwijs
    wrote on last edited by kshegunov
    #1

    Hi All,
    I have a QComboBox, wich has overloaded signals. I'm typing the following connect line:

    connect(myCombo,&QComboBox::
    

    At that point I get a list with the available signals. Then I walk with the arrow keys to "editTextChanged(const QString &)". There are two thing that could be improved here:

    1. (const QString &) is not shown when I hover over it with the mouse, you have to use the arrow keys here
    2. I can't see the signal is overloaded, so only at compile time I see I need to insert the static cast trick.
      My versions:
      Windows 7 enterprise SP1 64 bit
      Qt Creator 3.6.0 Based on Qt 5.5.1 (MSVC 2013, 32 bit)
      QT5.5, mingw492_32
      Cheers,
      Cedric

    [Moved to the Tools subforum ~kshegunov]

    kshegunovK 1 Reply Last reply
    0
    • C cdwijs

      Hi All,
      I have a QComboBox, wich has overloaded signals. I'm typing the following connect line:

      connect(myCombo,&QComboBox::
      

      At that point I get a list with the available signals. Then I walk with the arrow keys to "editTextChanged(const QString &)". There are two thing that could be improved here:

      1. (const QString &) is not shown when I hover over it with the mouse, you have to use the arrow keys here
      2. I can't see the signal is overloaded, so only at compile time I see I need to insert the static cast trick.
        My versions:
        Windows 7 enterprise SP1 64 bit
        Qt Creator 3.6.0 Based on Qt 5.5.1 (MSVC 2013, 32 bit)
        QT5.5, mingw492_32
        Cheers,
        Cedric

      [Moved to the Tools subforum ~kshegunov]

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @cdwijs said in Overloaded signals, QtCreator doesn't warn about them before compile:

      You may want to try the clang code model.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved