Results 1 to 2 of 2

Thread: Implementing a simple text editor in PyQT4 using a menu bar

  1. #1
    Join Date
    Jan 2010
    Posts
    20
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Implementing a simple text editor in PyQT4 using a menu bar

    Hello,

    I'm new to pyqt4 and qt4 designer and I have few questions:

    1. How do you create a user interface by writing code and using qt4 designer?

    2. I'm wondering if anyone knows how to implement this tutorial:


    http://www.rkblog.rk.edu.pl/w/p/simp...-editor-pyqt4/


    using a menu bar instead of buttons? For example: having the open file, save, and close buttons implemented into a menu bar having a file option with three selections (open file, save, close)? And have these options work?

    (check out the attachment for an example of what I am talking about)

    Thank you in advance.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2010
    Posts
    20
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Implementing a simple text editor in PyQT4 using a menu bar

    I figured out my first question. Basically Qt4 creates a .ui file. When you use the compiling command pyuic4 filename.ui > filename.py it will create a .py file in which you can edit your code. This way you can use the designer and write your own code. Still looking for an answer for my second question though

Similar Threads

  1. How to Add Text to Editor in QTableView
    By klahey in forum Qt Programming
    Replies: 2
    Last Post: 2nd January 2010, 15:05
  2. Replies: 12
    Last Post: 5th July 2009, 16:03
  3. Implementing an "open recently opened files" menu?
    By joelthelion in forum Qt Programming
    Replies: 3
    Last Post: 6th March 2009, 10:49
  4. Creating simple text editor from the eamples code
    By overcast in forum Qt Programming
    Replies: 4
    Last Post: 14th February 2007, 15:46
  5. Simple text editor with QT designer Tutorial
    By overcast in forum Qt Tools
    Replies: 2
    Last Post: 27th January 2007, 14:33

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.