Results 1 to 10 of 10

Thread: include "QDialog" etc not found after upgrade from 5.4 to 5.6

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: include "QDialog" etc not found after upgrade from 5.4 to 5.6

    Quote Originally Posted by gig-raf View Post
    I agree that putting in the QT += widgets in my pro file will partially solve the problem. But I never had to do this with the QT5.4 setup I had before.
    Than this worked by accident, qmake requires to know which modules to use for both the include paths and the libraries to link to and "widgets" is required for QtWidgets since 5.0.

    Adding "widgets" is one of the things that need to be done when porting from Qt4 to Qt5, as QtWidgets was split from QtGui into its own module.

    Quote Originally Posted by gig-raf View Post
    I thought the qmake -project would detect what qt libs I need and dynamically create the pro file for me.
    No, I think it only detects the sources and headers.

    Quote Originally Posted by gig-raf View Post
    It is quite handy and safes me lots of time when moving between my development environments (Which are not identical).
    Then it might be worth considering always using the same build system or using something that can generate input for all required build systems.
    E.g. qmake can not only generate Makefiles, it can also generate visual studio project files.

    CMake has even more output generators.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    gig-raf (12th April 2016)

  3. #2
    Join Date
    Jun 2012
    Posts
    38
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: include "QDialog" etc not found after upgrade from 5.4 to 5.6

    Thanks guys. I can not thank you enough for the help.

    You are right, I most completely starred myself blind on this problem. Of course I have to update the pro files and add in my include and QT libs manually. I was so sure that qmake -project would do that for me that I completely ruled it out.

    So when I removed the pro file and setup the project again things stopped working.


    ...I hang my head in shame!

Similar Threads

  1. QButtonBox, QDialog should not close on "Abort" or "Cancel"
    By HappyCoder in forum Qt Programming
    Replies: 8
    Last Post: 10th September 2015, 13:10
  2. QML: module "QtQuick.Controls" plugin "qtquickcontrolsplugin" not found on iOS
    By ChristianH in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd August 2015, 17:53
  3. Replies: 32
    Last Post: 25th August 2012, 23:10
  4. "Cannot run program "C:\Qt\4.3.3\bin\qmake": file not found
    By PeteH in forum Installation and Deployment
    Replies: 1
    Last Post: 7th February 2009, 00:48
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.