Skip to content

New MailWindow.cpp error during compile #7

Closed

Description

@justinclift

Just got this when trying to compile:

clang++ -c -pipe -O2 -arch x86_64 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.6/mkspecs/unsupported/macx-clang -I. -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/include -I. -Irelease -F/usr/local/Cellar/qt/4.8.6/lib -o release/NoViableAltException.o src/NoViableAltException.cpp
MainWindow.cpp:1565:13: error: unknown type name 'QColorDialog'; did you mean 'QFileDialog'?
            QColorDialog colordialog(this);
            ^~~~~~~~~~~~
            QFileDialog
/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers/qfiledialog.h:66:20: note: 'QFileDialog'
      declared here
class Q_GUI_EXPORT QFileDialog : public QDialog
                   ^
MainWindow.cpp:1568:40: error: no member named 'getColor' in 'QFileDialog'
            QColor color = colordialog.getColor(precolor, this, tr("Choose a axis color"));
                           ~~~~~~~~~~~ ^
2 errors generated.
make[2]: *** [release/MainWindow.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Seems to have been introduced by da9f248.

Maybe it's due to my Qt version? I have 4.8.6 installed. Can try 5.x if that would be better.

Activity

  1. added this to the milestone on May 13, 2014
  2. sarbogast commented on May 13, 2014

    @sarbogast

    +1

  3. justinclift commented on May 14, 2014

    @justinclift
    MemberAuthor

    @sarbogast If you need this to compile, then you can roll the cloned repo back a few commits and things should "just work" when you try to compile. eg:

    $ git reset --hard 75b519df3764618c98ac9dca894f4fd7e70f8a20
    HEAD is now at 75b519d plot: no selection for tree plot columns widget
    
  4. rp- commented on May 14, 2014

    @rp-
    Contributor
  5. added a commit that references this issue on Dec 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions