Results 1 to 13 of 13

Thread: Problem with setFont for a PushButton

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem with setFont for a PushButton

    Thanks for your reply.
    My application has to change text and properties of a pushbutton.

    Whenever I click on PushButton I have to change the text and property of a pushButton everytime I click on it, that is why I am connecting two slots for the same widget( i.e pushButton here) at different contexts.

    Yes you are right, MainWindow::noChangeProperty() does not do anything, it is just a dummy button to distinguish with other two buttons, if at all the other two buttons changes their property.

    To reproduce the problem, we have run the executable and click on propertyButton , which appears below of app, click on pushButtons on that page. On clicking 1st Button has to change the property from Bold to Normal, 2nd is dummy, 3rd is increase and decrease font size of that Button text.

    Thanks & Regards,
    Arun

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem with setFont for a PushButton

    Quote Originally Posted by arunvv View Post
    Whenever I click on PushButton I have to change the text and property of a pushButton everytime I click on it, that is why I am connecting two slots for the same widget( i.e pushButton here) at different contexts.
    But you establish one MORE connection EVERY time a button gets pressed. Notice that old connections remain.

    To reproduce the problem, we have run the executable and click on propertyButton , which appears below of app, click on pushButtons on that page. On clicking 1st Button has to change the property from Bold to Normal, 2nd is dummy, 3rd is increase and decrease font size of that Button text.
    Yes, they do change for me. Where's the problem?
    J-P Nurmi

  3. #3
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem with setFont for a PushButton

    Thanks for reply.

    I crosscompiled the code and copied the executable on to target board(PowerPC). When I run the executable it is not behaving as same as it behaves on desktop.

    The font change from Bold to Normal, font increase doesn't happen on target board.

    Where could be the cause?

    Thanks & Regards,
    Arun.

  4. #4
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem with setFont for a PushButton

    Sorry to bother you all. It was my mistake, due to space contraint on target board, keeping 1 or 2 fonts, I removed rest of all the fonts, from font directory on target board.
    So that is why the changes are not reflecting on target board.
    When I copied some of the font files to font directory on target board it is working fine.
    Thanks once again for you imm. replies and co-opeartion.

    Thanks & Regards,
    Arun.

Similar Threads

  1. Pushbutton sizing problem on Mac OS
    By will49 in forum Qt Programming
    Replies: 5
    Last Post: 3rd October 2007, 21:26
  2. PushButton height problem
    By impeteperry in forum Qt Tools
    Replies: 4
    Last Post: 28th January 2007, 20:36
  3. 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
  •  
Qt is a trademark of The Qt Company.