Results 1 to 4 of 4

Thread: what will be the coding for Menu->File->open

  1. #1
    Join Date
    Nov 2006
    Location
    gurgaon
    Posts
    49
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X

    Default what will be the coding for Menu->File->open

    hi all
    i m working on QT4.2 on Mac
    so can anyone help to solve out my query
    i m attaching my form
    when open get activated then a dialog to choose path for directory or file to open should be opened as normally a open function do....
    same for save a dailog oshould open where we can choose a path to save a file.....as save operation do..

    plz do tell me its coding
    as soon as possible...
    thanks & regards
    --------------------
    jyoti

  2. #2
    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: what will be the coding for Menu->File->open

    Quote Originally Posted by jyoti View Post
    as soon as possible...
    As soon as possible you should read about QFileDialog (especially about QFileDialog::getOpenFileName() and QFileDialog::getSaveFileName()).

    PS. This has nothing to do with Qt Designer. Thread moved.

  3. #3
    Join Date
    Nov 2006
    Location
    gurgaon
    Posts
    49
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: what will be the coding for Menu->File->open

    thanks alot...i ws useful
    can u plz tell for undo,cut, copy, paste
    plz tell in coding part
    as i m using textedit on menu window

    void form1::mycut()
    {
    textEdit->
    }
    void form1::mycopy()
    {

    }
    void form1::mypaste()
    {

    }

    plz send reply as soon as possible
    thanks & regards
    --------------------
    jyoti

  4. #4
    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: what will be the coding for Menu->File->open

    Please, don't post two unrelated questions in one thread. I've moved the rest of the posts about cut & paste here.

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 19:43
  2. QDesktopServices open url & local file & pdf or doc
    By patrik08 in forum Qt Programming
    Replies: 9
    Last Post: 14th April 2012, 04:42
  3. Qt 4.1.4 on VS2005 error- cannot open input file 'qtmain.lib'
    By Ashish in forum Installation and Deployment
    Replies: 10
    Last Post: 11th October 2006, 16:05
  4. QProcess open all file -> url.dll,FileProtocolHandler
    By patrik08 in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2006, 17:07
  5. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 09: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.