Results 1 to 3 of 3

Thread: Doubts about QLayout, events and properties

  1. #1

    Default Doubts about QLayout, events and properties

    Hello, I've recently started reading the Qt3 documentation, and now I have some doubts.

    1. What exactly are layouts, and, for instance, how is a QVBoxLayout different from a QVBox?
    2. How are properties different from the usual setMember/getMember methods and when should I use them?
    3. In what way are events and event filters different from normal methods and slots?

    Thank you.

  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: Doubts about QLayout, events and properties

    I hate to RTFM you, but RTFM And when you do, come back and ask your questions, because it is most probable, that an answer you get will point you to the docs anyway.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Doubts about QLayout, events and properties

    Quote Originally Posted by rakuco
    1. What exactly are layouts
    Layouts manage the way that widgets will be placed.

    Quote Originally Posted by rakuco
    and, for instance, how is a QVBoxLayout different from a QVBox?
    QVBox is a widget with a QVBoxLayout layout.

    Quote Originally Posted by rakuco
    2. How are properties different from the usual setMember/getMember methods and when should I use them?
    Using Qt mechanisms you can check at runtime what properties a given object has. You can't do this with methods. You don't have to worry about properties, unless you want to create plugins.

    Quote Originally Posted by rakuco
    3. In what way are events and event filters different from normal methods and slots?
    Events are asynchronous and they are first stored in a queue, methods and slots are executed immediately (in Qt4 slots can behave like methods or like event handlers, depending on the connection type).

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.