bugTutka - Bugs: bug #43209, Build error: ‘class...

 
 

bug #43209: Build error: ‘class QApplication’ has no member named ‘primaryScreen’

Submitted by:  Tuomas Kuosmanen <tigert>
Submitted on:  Fri 12 Sep 2014 10:01:53 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: FixedAssigned to: None
Open/Closed: ClosedRelease: 1.0.0
Operating System: GNU/LinuxPlanned Release: 1.0.1

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 12 Sep 2014 10:07:28 AM UTC, comment #2:

To get it working, please install the Qt5 development libraries. On Fedora qt5-qtbase-devel is your friend.

Vesa Halttunen <vesuri>
Project Administrator
Fri 12 Sep 2014 10:04:30 AM UTC, comment #1:

Ah, QScreen is Qt5 only. I should either make it a conditional or just require Qt5.

Vesa Halttunen <vesuri>
Project Administrator
Fri 12 Sep 2014 10:01:53 AM UTC, original submission:

Trying to build on Fedora 21 (prerelease) which has qt-devel-4.8.6-12.fc21.x86_64 installed.

I get this error:

g++ -c -pipe -g -Werror -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -Wno-strict-overflow -Wno-sign-compare -D_REENTRANT -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I.moc -I. -o .obj/mainwindow.o mainwindow.cpp
mainwindow.cpp: In constructor ‘MainWindow::MainWindow(Player, QWidget)’:
mainwindow.cpp:245:97: error: ‘class QApplication’ has no member named ‘primaryScreen’
setGeometryFromString(this, settings.value("Windows/mainWindowGeometry", rectToString(qApp->primaryScreen()->availableGeometry())).toString());
^
mainwindow.cpp: In static member function ‘static void MainWindow::setGeometryFromString(QWidget*, const QString&)’:
mainwindow.cpp:1264:36: error: ‘class QApplication’ has no member named ‘primaryScreen’
QRect mainRect = qApp->primaryScreen()->availableGeometry();
^
Makefile:659: recipe for target '.obj/mainwindow.o' failed
make: *** [.obj/mainwindow.o] Error 1

Tuomas Kuosmanen <tigert>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by vesuri (Posted a comment)
  • -unavailable- added by tigert (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Sep 2014 01:54:04 PM UTCvesuriStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 12 Sep 2014 10:04:30 AM UTCvesuriStatusNone=>Confirmed
      Planned ReleaseNone=>1.0.1

    Back to the top


    Powered by Savane 3.1-cleanup1