Results 1 to 4 of 4

Thread: Application porting suggestion

  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Application porting suggestion

    Hello forum,

    I am going through hard time while porting wxwidget application to Qt. There are several event function in wxWidget and i am not sure if the corresponding function should be created in Qt as well.

    If there is any guideline for this, i would be glad to be informed.


    For example, on wxWidget they have a event function called - OnFullScreen() and inside this function it is doing some custom stuff for its inner widgets. What would be the corresponding slot/event function for this here in Qt ?

    there in a slot showMaximized()/showFullScreen() in QWidget, i would like to know how to customize them if i have to do something specific on window maximized or full screen event ? Or do i have to do something on the QResizeEvent?



    Regards
    Sajjad

  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: Application porting suggestion

    What custom stuff?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Application porting suggestion

    Set some value(width, height, enum flags, etc.) for the inner widgets that it holds as reference.

  4. #4
    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: Application porting suggestion

    So essentially it moves widges around. This is not required with Qt as here one uses layouts (QGridLayout and family) to manage widget geometry. If you really insist on doing the same as the original implementation then reimplement resizeEvent for the window object or implement a custom layout class.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 2nd March 2011, 09:53
  2. Porting Qt application from linux to Windows
    By ankit17.ag in forum Qt Programming
    Replies: 5
    Last Post: 12th February 2009, 21:18
  3. Porting Qt embedded application to windows.
    By vipin in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 14th January 2008, 16:08
  4. Client-Server Application design suggestion
    By berzeck in forum Qt Programming
    Replies: 6
    Last Post: 17th December 2007, 18:13
  5. porting qt3 to qt4? ny suggestion?
    By oob2 in forum Qt Programming
    Replies: 4
    Last Post: 25th October 2007, 17:05

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.