Results 1 to 5 of 5

Thread: IO_Raw unrecognized???

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default IO_Raw unrecognized???

    Here is my simple code:

    Qt Code:
    1. #include <qapplication.h>
    2. #include <qfile.h>
    3. #include <qwidget.h>
    4.  
    5. class MyWidget : public QWidget
    6. {
    7. public:
    8. MyWidget(QWidget *parent = 0);
    9. };
    10.  
    11. MyWidget::MyWidget(QWidget *parent) : QWidget(parent)
    12. {
    13. setFixedSize(500, 450);
    14.  
    15. QFile file("test.php");
    16. file.open(IO_Raw);
    17.  
    18. //QString buff;
    19.  
    20. file.close();
    21. }
    22.  
    23. int main(int argc, char *argv[])
    24. {
    25. QApplication app(argc, argv);
    26. MyWidget widget;
    27. widget.show();
    28.  
    29. return app.exec();
    30. }
    To copy to clipboard, switch view to plain text mode 

    When I attempt to build I get this error unless I comment out the file.open(IO_Raw) line???

    I just want to load some text data into a single buffer.

    Can someone tell me what i'm doing wrong?
    Last edited by jacek; 29th November 2007 at 22:14. Reason: changed [qtclass] to [code]

Similar Threads

  1. Handcoder's IDE for Qt
    By magland in forum Qt-based Software
    Replies: 55
    Last Post: 7th September 2007, 15:09

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
  •  
Qt is a trademark of The Qt Company.