Results 1 to 8 of 8

Thread: Help needed to find a word in multiple file

  1. #1
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Help needed to find a word in multiple file

    Hello...
    I'm new to Qt, I needed a program to find a word in multiple file. The parsing must be done using regular expression. Please help me

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Help needed to find a word in multiple file

    Homework assignment?

    QFile (certainly), QTextStream (perhaps), QRegExp (required) and a smattering of standard C++.

  3. The following user says thank you to ChrisW67 for this useful post:

    aurora (10th October 2011)

  4. #3
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help needed to find a word in multiple file

    ya... thank u.... actually doing project on Qt, learning now and i wrote code in perl....but needed help in qt


    Added after 13 minutes:


    Can i get some more detail please.....i'm not able to understand it....
    Last edited by aurora; 10th October 2011 at 07:06.

  5. #4
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Help needed to find a word in multiple file

    Read the documentation for the classes mentioned earlier; it should take no more then 15 minutes to figure out what they do and how to use them.

  6. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Help needed to find a word in multiple file

    Can i get some more detail please.....i'm not able to understand it....
    Which bit of "it" don't you understand? Which bits do you understand?

    What does your proposed program look like in pseudo-code? Have you broken it into smaller components? What sort of functions do you need to complete the task? Do any of them sound like they might relate to the classes above?

  7. #6
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help needed to find a word in multiple file

    Quote Originally Posted by ChrisW67 View Post
    Which bit of "it" don't you understand? Which bits do you understand?

    What does your proposed program look like in pseudo-code? Have you broken it into smaller components? What sort of functions do you need to complete the task? Do any of them sound like they might relate to the classes above?
    my task is to write a program with GUI,which accepts list of file names and a keyword and displays all the lines in those file which has that key word.......
    Please guide me...how can i write code for this..? what are the headers i should include?

  8. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Help needed to find a word in multiple file

    Sorry to be blunt but so far it seems you want us to write the project for you. It doesn't work this way, especially if that's your school assignment (I don't believe any real project would focus on reimplementing 'grep'). You need to develop an idea on how to solve your problem, come up with an algorithm and then we can try to help you improve your approach and suggest ways of coding it using Qt. We won't teach you C++ here, we won't teach you programming here. Present a list of steps that you think your program should implement and then we'll comment it.
    Last edited by wysota; 10th October 2011 at 08:48.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #8
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help needed to find a word in multiple file

    ok thank u

Similar Threads

  1. QString find Whole word Only
    By bcteh_98 in forum Qt Programming
    Replies: 9
    Last Post: 7th December 2018, 08:47
  2. Replies: 3
    Last Post: 5th February 2011, 07:31
  3. cannot find -lQtGui -QT Beginner Help Needed
    By nsa in forum Installation and Deployment
    Replies: 5
    Last Post: 18th July 2009, 07:31
  4. MS Word file
    By Arpan in forum Qt Programming
    Replies: 1
    Last Post: 30th July 2008, 20:26
  5. Multiple Windows -> Advice needed
    By vokal in forum Newbie
    Replies: 2
    Last Post: 8th January 2007, 08:40

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.