Results 1 to 4 of 4

Thread: QDialog is blank

  1. #1
    Join Date
    May 2008
    Posts
    20
    Thanks
    1

    Default QDialog is blank

    I am trying to make a simple example of QDialog. I tried this: http://programmingexamples.net/index...itle=Qt/Dialog but the dialog that is opened does not have the buttons or label that I saw in the Designer. I think it might be a problem with the Dialog() constructor - would someone mind taking a quick look?

    Also, I've seen examples that use ->exec() instead of ->show(), but when I try that it says there is no such function.

    Thanks,

    David

  2. #2
    Join Date
    Feb 2011
    Posts
    64
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDialog is blank

    I think you forget to include QDialog header. It will be better if you post your code, so others can see where is the problem and not just guess.

  3. #3
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QDialog is blank

    Compare your Form ctor with your Dialog ctor. Notice anything missing?

  4. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QDialog is blank

    You should have got your answer, if have tried to answer norobro's question.

    If not here it is...your Dialog is missing the setupUi() call, add this and see if you could get somewhere.

Similar Threads

  1. Add a blank entry in a combobox
    By lynnH in forum Qt Programming
    Replies: 9
    Last Post: 21st April 2011, 10:40
  2. Replies: 9
    Last Post: 25th March 2011, 21:22
  3. QDialog.exec() exiting without calling QDialog::accept()
    By doggrant in forum Qt Programming
    Replies: 3
    Last Post: 2nd February 2011, 11:35
  4. issue about blank area appear
    By cherrydou in forum Qt Programming
    Replies: 5
    Last Post: 23rd May 2008, 07:34
  5. Blank file using QXmlStreamWriter
    By sgmurphy19 in forum Qt Programming
    Replies: 4
    Last Post: 14th November 2007, 20:45

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.