Results 1 to 11 of 11

Thread: QLabel setText Problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    20
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QLabel setText Problem

    Hello
    I made a simple form in the Qt Designer, 4 QLabel's and 1 Process bar.
    I am trying to feed the QLabela file name to be displayed in the my Dialog.

    Qt Code:
    1. labelFileName->setText(filename);
    To copy to clipboard, switch view to plain text mode 

    no matter what I do, I just can't get it to print the line, the only way I got it to work was to place a statement after setupUI.
    Qt Code:
    1. setupUi(this)
    2. labelFileName->setText("Test");
    To copy to clipboard, switch view to plain text mode 


    My Question is , why doesn't my statement work.

    Thanks for your time .

    Patrick.
    Last edited by jacek; 31st October 2007 at 23:12. Reason: changed [qtclass] to [code]

Similar Threads

  1. Problem with QLabel and setText
    By jambrek in forum Qt Programming
    Replies: 7
    Last Post: 31st October 2007, 16:02
  2. Problem with QLabel & mouseEvent
    By harakiri in forum Newbie
    Replies: 5
    Last Post: 26th May 2007, 13:54
  3. Problem with QLineEdit and setText
    By Elmo23x in forum Qt Programming
    Replies: 8
    Last Post: 12th April 2007, 12:35
  4. Replies: 1
    Last Post: 26th November 2006, 09:32
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.