Results 1 to 20 of 24

Thread: setText in QToolButton ( qt4 )

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: setText in QToolButton ( qt4 )

    Do you add the toolbar to mainwindow?
    J-P Nurmi

  2. #2
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: setText in QToolButton ( qt4 )

    Quote Originally Posted by jpn View Post
    Do you add the toolbar to mainwindow?
    Actually am porting from Qt3 to Qt4. So in my application "MyMainWindow" is a Q3MainWindow and QToolBar( qt4 ) , QToolButton( qt4 ).

    So i think i have to change Qt3 -MainWindow to Qt4-MainWindow... right ..?

    Is there any other way...??

  3. #3
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: setText in QToolButton ( qt4 )

    No, I don't think there's an alternative.

    Your application will work much better with Qt4 MainWindow though
    And porting your code to Qt4 won't be that hard, except if it's really big!

  4. #4
    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: setText in QToolButton ( qt4 )

    Quote Originally Posted by joseph View Post
    So i think i have to change Qt3 -MainWindow to Qt4-MainWindow... right ..?
    Yes, that's right. Unfortunately you cannot mix them up in this case.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    joseph (5th July 2007)

  6. #5
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: setText in QToolButton ( qt4 )

    Thank you jpn.

    I am planning to change the Q3MainWindow to QMainwindow (qt4) ,but later.
    Now i will go with the QPushButtons( Not looks good in Toolbar).

Similar Threads

  1. QToolButton text alignment
    By Vladimir in forum Qt Programming
    Replies: 6
    Last Post: 2nd March 2007, 07:42
  2. QSqlRelationalDelegate Draw a clickable QToolButton
    By patrik08 in forum Qt Programming
    Replies: 5
    Last Post: 1st March 2007, 20:59
  3. Replies: 1
    Last Post: 26th November 2006, 09:32
  4. Problem with qtoolbutton
    By moowy in forum Qt Programming
    Replies: 1
    Last Post: 22nd September 2006, 13:30
  5. Need help with QToolButton
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 22nd April 2006, 14:55

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.