Results 1 to 3 of 3

Thread: QDialog to QWidget

  1. #1
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QDialog to QWidget

    I am using QWizardPage and would like to add some existing QDialog that I have inside the QWizardPage, which means I have to have a QWidget or else a QDialog will pop up outside from it.

    I was reading about messing around with the windows flag when i call my dialog but i am not succesful yet . I am just wondering if you guys know of ways that i can try.

    baray98

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDialog to QWidget

    Dialogs are meant to be popped up,,, isnt it ??
    why dont u use a widget instead ??

  3. #3
    Join Date
    Mar 2008
    Posts
    27
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDialog to QWidget

    Quote Originally Posted by baray98 View Post
    I am using QWizardPage and would like to add some existing QDialog that I have inside the QWizardPage, which means I have to have a QWidget or else a QDialog will pop up outside from it.

    I was reading about messing around with the windows flag when i call my dialog but i am not succesful yet . I am just wondering if you guys know of ways that i can try.

    baray98
    Try to give the QDialog the window flag Qt::Widget and give it a parent.
    example: someQDialog.setWindowFlags(Qt::Widget);

Similar Threads

  1. Error in put one QWidget in another QWidget
    By xjtu in forum Qt Programming
    Replies: 1
    Last Post: 19th April 2008, 16:05
  2. Remove QSizeGrip/Size Grip from a QWidget or QDialog?
    By Cheetah in forum Qt Programming
    Replies: 1
    Last Post: 5th November 2007, 16:35
  3. QDialog margin and spacing
    By TheRonin in forum Qt Programming
    Replies: 4
    Last Post: 29th October 2007, 10:11
  4. Resizing a QDialog to the content size
    By Nyphel in forum Qt Programming
    Replies: 8
    Last Post: 15th March 2007, 08:16
  5. Confused QWidget and QDialog behavior
    By munna in forum Qt Programming
    Replies: 1
    Last Post: 9th December 2006, 12:14

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.