Results 1 to 6 of 6

Thread: problem in selecting base class

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default problem in selecting base class

    hi all,
    Iam using QT4.4.3 integrated with visual studio2008...
    When i Created new project it is asking base class with options QMainWindow ,QWidget , QDialog..Now i want to know in which kind of situation(Application) i have to select the proper base class..

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problem in selecting base class

    if you need menus, toolbars and etc then you need to use QMainWindow, if you need modal dialogs with own event loop provided by exec method then QDialog in another case you can you QWidget.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3

    Default Re: problem in selecting base class

    Thanks for reply

  4. #4

    Default Re: problem in selecting base class

    Here my reqirement is the window should be split into 2 parts.
    part1 consists of buttons(add,delete)
    part2 consists of window that display the trasactions

    My questions are
    1)how to split the winsow in two parts
    2)how to connect both the parts

    And i attach the diagram.
    Attached Images Attached Images

  5. #5
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problem in selecting base class

    in designer select two (or needed number) of widget and push "Form->Lay Out Horiontally(Vertically) in Splitter" button.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  6. #6

    Default Re: problem in selecting base class

    i didn't understand clearly, can u elaborate the answer

Similar Threads

  1. Replies: 11
    Last Post: 7th July 2006, 13:09
  2. problem declaring a class
    By mickey in forum General Programming
    Replies: 1
    Last Post: 26th May 2006, 18:12
  3. How can i prevent class redefinition problem ?
    By ankurjain in forum General Programming
    Replies: 5
    Last Post: 26th May 2006, 02:35
  4. virtual overloaded functions and base class function call...
    By nouknouk in forum General Programming
    Replies: 7
    Last Post: 11th March 2006, 21:26
  5. 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.