Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 04-30-2009, 11:54 AM   #1
Registered: Oct 2002
Posts: 493

Rep: Reputation: 62
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
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
Registered: Oct 2002
Posts: 493

Original Poster
Rep: Reputation: 62


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:10 PM.

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