Results 1 to 5 of 5

Thread: viewing files or some folders

  1. #1
    Join Date
    May 2008
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default viewing files or some folders

    Hello!
    I need to write SLOT for opening some files or directories using Qt. How I can manage it?

  2. #2
    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: viewing files or some folders

    See QFileDialog. Notice especially those convenient static methods.
    J-P Nurmi

  3. #3
    Join Date
    May 2008
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: viewing files or some folders

    Actually I don't need to use this files or folders in my program. It should open after button ButtonPressed event separatly out of my program.

  4. #4
    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: viewing files or some folders

    J-P Nurmi

  5. #5
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: viewing files or some folders

    Quote Originally Posted by as001622 View Post
    Hello!
    I need to write SLOT for opening some files or directories using Qt. How I can manage it?
    Implement your function and declare it in slots section.Then connect some signal to your slot.

    Qt Code:
    1. class QQQ {
    2. ...
    3. private slots:
    4. void MySlot();
    5. ...
    6. }
    7.  
    8. void QQQ::MySlot()
    9. {
    10. ...
    11. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 2nd June 2008 at 13:19. Reason: missing [code] tags
    I'm a rebel in the S.D.G.

Similar Threads

  1. Replies: 42
    Last Post: 30th July 2007, 15:55
  2. How to manage files with different folders for make
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 7th July 2007, 14:44
  3. Replies: 5
    Last Post: 22nd September 2006, 09:04
  4. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 11:28

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.