Page 6 of 6 FirstFirst ... 456
Results 101 to 105 of 105

Thread: Problem displaying my main window

  1. #101
    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: Problem displaying my main window

    In about.h it should be:
    Qt Code:
    1. class Dialog : public QDialog, public Ui::Dialog
    To copy to clipboard, switch view to plain text mode 

    Please paste the error messages into your posts. If you click on the C:\ icon in the corner, a menu will be opened that will allow you to mark and copy the text.

  2. #102
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem displaying my main window

    IT WORKS!!! Special thanks to: jacek, jpn, wysota
    Regards

  3. #103
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default Re: Problem displaying my main window

    I am new at QT,
    I tried to do same thing but i had this mistake.What is the solution? Can you help me?


    make x86
    qmake -o qMakefile my.pro
    make --makefile qMakefile
    make[1]: Entering directory `/home/canibek/davinci/software/workspace/denem'
    g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -Imoc_obj -I. -o moc_obj/main.o main.cpp
    In file included from main.cpp:2:
    main.h:34:3: warning: no newline at end of file
    main.cpp:12:2: warning: no newline at end of file
    In file included from main.cpp:3:
    dialog1.h:3: error: redefinition of ‘class Dialog’
    dialog1.h:4: error: previous definition of ‘class Dialog’
    make[1]: Leaving directory `/home/canibek/davinci/software/workspace/denem'
    make[1]: *** [moc_obj/main.o] Error 1
    make: *** [x86] Error 2

  4. #104
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem displaying my main window

    Missing #ifdef, #define, #endif ?
    J-P Nurmi

  5. #105
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Smile Re: Problem displaying my main window

    Thanks JPN, How did I such a simple mistake? I must work harder , Thank you again, I hope some day I will be an expert(Guru) here.

Similar Threads

  1. Replies: 15
    Last Post: 23rd March 2007, 17:16
  2. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 09:41
  3. Problem in porting Main window on linux
    By jyoti kumar in forum Qt Tools
    Replies: 2
    Last Post: 2nd June 2006, 09:35
  4. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 11:21
  5. Main window
    By Michiel in forum Qt Tools
    Replies: 1
    Last Post: 21st March 2006, 00:54

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.