Results 1 to 3 of 3

Thread: Change base class

  1. #1
    Join Date
    Jul 2006
    Location
    Cagliari - Sardinia - Italy
    Posts
    26
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Question Change base class

    Hello evrybody, my question is the following...
    I create an UI that extends QWidget. Now, if I want that this UI extends QMainWidget (for example) what can I do? I've to edit the ui file by hand? Is there a better way?

    thanks to all...

  2. #2
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Change base class

    Ya AFAIK you have to maually edit the .ui file and Replace the QWidget with QMainWindow.
    We can't solve problems by using the same kind of thinking we used when we created them

  3. #3
    Join Date
    Jul 2006
    Location
    Cagliari - Sardinia - Italy
    Posts
    26
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Wink Re: Change base class

    oh... thanks

Similar Threads

  1. Signal/slot looking in base class, not derived class
    By georgie in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2006, 07:36
  2. Replies: 2
    Last Post: 4th May 2006, 19:17
  3. How to propagate from one class to another
    By mahe2310 in forum Qt Programming
    Replies: 15
    Last Post: 20th March 2006, 01:27
  4. Replies: 5
    Last Post: 15th March 2006, 07:33
  5. virtual overloaded functions and base class function call...
    By nouknouk in forum General Programming
    Replies: 7
    Last Post: 11th March 2006, 21:26

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.