Results 1 to 3 of 3

Thread: aLabel->show() does not seem to work

  1. #1
    Join Date
    Jul 2006
    Posts
    79
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default aLabel->show() does not seem to work

    hello everyone,
    in the aForm::init() function

    if ( aUINT == 1 )
    {

    aButton->setOn(TRUE);//its a toggle button
    aButton->setText(QString ("ON") );
    aLabel->setText("some text");
    aLabel->show();
    }
    but the label is not shown.. does not appear on screen. i know the if statement is run because the setOn call works properly.
    any ideas?
    nass

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: aLabel->show() does not seem to work

    What is aLabel? What is its parent? Are you using Designer or do you invoke this init() method manually? Could you verify that the method is run by placing some qDebug statement in it?

  3. #3
    Join Date
    Jul 2006
    Posts
    79
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: aLabel->show() does not seem to work

    scratch that... really stupid reason, was calling hide() somewhere later on in init()..

Similar Threads

  1. QTextEdit Justify align making work
    By dec0ding in forum Qt Programming
    Replies: 2
    Last Post: 13th January 2006, 12:02

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.