LinuxQuestions.org
Register a domain and help support LQ
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 04-30-2009, 11:54 AM   #1
sharky
Member
 
Registered: Oct 2002
Posts: 384

Rep: Reputation: 37
qt4 designer ampersand on text


Using the desinger tool with Qt 4.5.1 and working on an example from C++ GUI Programming with Qt 4 1st ed.

I type Ca&ncel in the properties editor for the text property on a pushButton widget and it displays "Cancel" on the button with the 'n' underlined. This is what we expect and it works with buttons but it doesn't appear to work with text labels.

I created a text label and set the text property to "&Cell Location:" (per instructions from the book). Instead of displaying "Cell Location:" with the 'C' underlined it is displaying "&Cell Location" as typed in the properties editor.

Is there another property that needs to be set on text labels to make this feature work?
 
Old 05-02-2009, 04:46 PM   #2
giftlftr_23
Member
 
Registered: Oct 2008
Location: I live where I'm currently standing on
Distribution: fedora, opensuse
Posts: 34

Rep: Reputation: 17
QLabel needs a buddy.

Here Link, you can follow that.
 
Old 05-08-2009, 08:10 AM   #3
sharky
Member
 
Registered: Oct 2002
Posts: 384

Original Poster
Rep: Reputation: 37
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using the & (ampersand) with a command stephencummings Linux - Newbie 2 11-23-2008 01:32 AM
ampersand problem in cgi script... Sherlock Programming 6 05-22-2007 02:12 AM
Qt Designer "Help" causes kernel crash, Designer scroll problems ta0kira Slackware 0 10-16-2006 05:35 PM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 04:45 AM
Zooming text in Manual of Qt designer linuxprogrammer Linux - General 1 10-06-2004 06:47 AM


All times are GMT -5. The time now is 04:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration