LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-03-2019, 07:18 PM   #1
smaclennan
Member
 
Registered: May 2010
Location: Ottawa, Canada
Distribution: slackware
Posts: 37
Blog Entries: 2

Rep: Reputation: 13
Question QFileDialog and QT_NO_TOOLTIP


I want to disable the tooltips in trojita, a qt based email client.

I first did a test build stock, then tried to rebuild with -DQT_NO_TOOLTIP.

Of course, I had to ifdef out all the tooltip code... but I also got these errors:

error: 'QFileDialog' has not been declared

Every single place QFileDialog was used failed to compile. I looked at the header file and it doesn't seem to rely on tooltips.

If I add #unde QT_NO_TOOLTIP at the start of the .cpp file, then it compiles.

Why would QFileDialog need tool tips?
 
Old 05-04-2019, 11:48 AM   #2
smaclennan
Member
 
Registered: May 2010
Location: Ottawa, Canada
Distribution: slackware
Posts: 37

Original Poster
Blog Entries: 2

Rep: Reputation: 13
Ok, I found it. In QtCore/qfeatures.h, QT_NO_FILEDIALOG is defined if any of a huge list of QT_NO_* defines are set. And, yes, one of them is QT_NO_TOOLTIP

Why would a file dialog *require* tooltips?
 
Old 05-06-2019, 05:05 PM   #3
smaclennan
Member
 
Registered: May 2010
Location: Ottawa, Canada
Distribution: slackware
Posts: 37

Original Poster
Blog Entries: 2

Rep: Reputation: 13
I put a #undef QT_NO_FILEDIALOG above #include <CFileDialog> and now I seem to have file dialogs. Don't know if they will crash under certain circumstances, but we will see.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't compile Qt4 when using QT_NO_TOOLTIP Woodsman Slackware 1 04-07-2013 06:10 PM
[SOLVED] Python "QFileDialog" code not working gary_in_springhill Programming 1 02-03-2010 08:48 AM
PYQT qfiledialog J3N7iL Linux - Software 0 05-21-2006 09:55 AM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Asus P4C800-E Deluxe and Mandrake and Intel ICH5R and RAID 0 and 74 GB Raptors SeattleGoozyGuy Linux - Hardware 1 05-31-2004 06:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration