Results 1 to 14 of 14

Thread: Proper code

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Location
    Auckland, NZ
    Posts
    121
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Proper code

    I have a limited understanding of Qt and Qwt, as this post will reveal, and I apologise in advance for my ignorance.
    Despite my poor grasp of it all, I have managed to get QwtPlots working in some fairly complex Qt programs. Now I am trying to do something much simpler, but following (so I think) the procedure that I have working in the other programs. But this simple example doesn't work.

    I have attached the three files that make up the project, which I am building with Qt Creator 2.5.2 on VS 2012 with Qt 4.8.5 (64-bit). Qwt 6.1.3 is also built 64-bit. The missing component is mainwindow.ui, which I made by hand. It has a QMainWindow containing a QWidget (centralWidget), within which I placed a QVBoxLayout, and inside that a QMdiArea called mdiArea.

    The program compiles and runs, but nothing I do makes it display the QwtPlot. mdiArea just shows as a grey rectangle. As far as I can see I am following my usual procedure, except that in the other programs centralWidget contains a QStackedWidget, and within that the vertical layout that holds mdiArea. I know that I am using an approach different from anything I've seen in the Qwt examples, but it seems to me that it should be close to working.

    If somebody has the patience to look at my code and see where I am going wrong I would be very grateful.
    Attached Files Attached Files

Similar Threads

  1. Proper way to start learning Qt
    By starlays in forum Newbie
    Replies: 2
    Last Post: 7th September 2016, 13:44
  2. Proper way to use qmake and moc?
    By mossen in forum Newbie
    Replies: 1
    Last Post: 6th May 2011, 02:52
  3. DOM XML reader - Not getting any proper output
    By mecrazycoder in forum Newbie
    Replies: 0
    Last Post: 17th December 2010, 14:26
  4. proper use of QList?
    By jhowland in forum Qt Programming
    Replies: 3
    Last Post: 13th September 2010, 14:57
  5. Proper way to #include Qt?
    By pherthyl in forum Qt Programming
    Replies: 1
    Last Post: 11th August 2006, 02:15

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.