Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. unresolved overloaded function type error
Forum Updated to NodeBB v4.3 + New Features

unresolved overloaded function type error

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.8k Views 1 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.
  • Z Offline
    Z Offline
    zeroptr
    wrote on 1 Dec 2015, 13:36 last edited by
    #1

    Hi All,

    I have this error after I wrote the code

    frmmain.cpp:78: error: no match for 'operator==' (operand types are '<unresolved overloaded function type>' and 'QString')
    if (window->windowTitle == Form_Header)
    ^
    code

    QMdiSubWindow *frmMAIN::findMdiChild(QString Form_Header)
    {
        foreach (QMdiSubWindow *window, ui->mdiArea->subWindowList())
        {
            if (window->windowTitle == Form_Header)
                return window;
        }
        return 0;
    }
    
    How to cast I don't have a clue?
    
    Thanks
    
    
    

    Linux Mint 20.04 64 Bit QT6.0.1

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on 1 Dec 2015, 13:39 last edited by
      #2

      Hi,

      you have missing parenthesis in

      if (window->windowTitle == Form_Header)
      

      should be

      if (window->windowTitle() == Form_Header)
      

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zeroptr
        wrote on 1 Dec 2015, 13:57 last edited by
        #3

        Thanks man...

        Can't believe myself!!

        Linux Mint 20.04 64 Bit QT6.0.1

        1 Reply Last reply
        0

        1/3

        1 Dec 2015, 13:36

        • Login

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