You have an "amplification" due to the language used: you cannot compare the "cost" of C lines with c++ lines. They don't pull the same SDK dependency in the end.
Basically, to be fair, in qt5 and fltk cases you should add an amplification factor of at least "10" (probably not big enough since c++ syntax and tens of times more complex than plain C99+).
https://openhub.net/p/qt5 (8,876,034 lines of code)
https://openhub.net/p/gtk (1,031,203 lines of code)
https://openhub.net/p/fltk (467,564 lines of code)