Results 1 to 3 of 3

Thread: Problem with main window

  1. #1
    Join Date
    Apr 2008
    Posts
    8

    Default Problem with main window

    Hello every one ..

    I am a beginner for qt3 .

    I have a problem and I hope to help me.

    I used in my application main window , and as you know , main window has a menu

    I want to change names of items in menu , like file , edit and so on to any specific

    name , BUT in Arabic language . I tried to change names of items to Arabic names

    but error appers to me :

    Qt Code:
    1. .ui/ocr.h:62: error: declaration of ‘QPopupMenu* OCR::unnamed’
    2. .ui/ocr.h:61: error: conflicts with previous declaration ‘QPopupMenu* OCR::unnamed’
    To copy to clipboard, switch view to plain text mode 

    when I searched for a sloution , I found that I could change names from file of user

    interface , that is , file of extension .ui

    BUT when I changed it , after first run , every thing is OK . but when I did another

    run , the error appeared again

    I really want your help

    thanks in advance

  2. #2
    Join Date
    Jun 2007
    Location
    India/Bangalore
    Posts
    156
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Problem with main window

    Can you please show your .ui file?
    Last edited by wysota; 2nd June 2008 at 07:38. Reason: Language corrected
    Thanks,
    Rajesh.S

  3. #3
    Join Date
    Apr 2008
    Posts
    8

    Default Re: Problem with main window

    Here is a peice of my ui code which have a menu :

    I changed name of one of items in menu to specific name in Arabic


    Qt Code:
    1. <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
    2. <class>Form1</class>
    3. <widget class="QMainWindow">
    4. <property name="name">
    5. <cstring>Form1</cstring>
    6. </property>
    7. <property name="geometry">
    8. <rect>
    9. <x>0</x>
    10. <y>0</y>
    11. <width>600</width>
    12. <height>480</height>
    13. </rect>
    14. </property>
    15. <property name="caption">
    16. <string>Form1</string>
    17. </property>
    18. </widget>
    19. <menubar>
    20. <property name="name">
    21. <cstring>MenuBar</cstring>
    22. </property>
    23. <item text=""""ملف" name="unnamed">
    24. <action name="fileNewAction"/>
    25. <action name="fileOpenAction"/>
    26. <action name="fileSaveAction"/>
    27. <action name="fileSaveAsAction"/>
    28. <separator/>
    29. <action name="filePrintAction"/>
    30. <separator/>
    31. <action name="fileExitAction"/>
    32. </item>
    33. <item text="&amp;Edit" name="editMenu">
    34. <action name="editUndoAction"/>
    35. <action name="editRedoAction"/>
    36. <separator/>
    37. <action name="editCutAction"/>
    38. <action name="editCopyAction"/>
    39. <action name="editPasteAction"/>
    40. <separator/>
    41. <action name="editFindAction"/>
    42. </item>
    43. <item text="&amp;Help" name="helpMenu">
    44. <action name="helpContentsAction"/>
    45. <action name="helpIndexAction"/>
    46. <separator/>
    47. <action name="helpAboutAction"/>
    48. </item>
    49. </menubar>
    50. <
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QMain Window Problem
    By maveric in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2008, 15:51
  2. minimizing main window
    By eric in forum Qt Programming
    Replies: 4
    Last Post: 28th November 2007, 16:54
  3. Problem hiding main window on minimize
    By bpetty in forum Newbie
    Replies: 5
    Last Post: 18th September 2007, 17:41
  4. New to QT, problem displaying main window...
    By McCall in forum Qt Programming
    Replies: 4
    Last Post: 15th June 2007, 14:27
  5. Problem in porting Main window on linux
    By jyoti kumar in forum Qt Tools
    Replies: 2
    Last Post: 2nd June 2006, 08:35

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.