Results 1 to 10 of 10

Thread: Building qwt with qt5 alpha

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Building qwt with qt5 alpha

    hi all..
    Is it possible to build qwt with qt5?? I've done this before but there is some error with QPrinter.h . In the qt5 QPrinter.h have some changes in relative to earlier versions.

    Thanks..

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    I once built Qwt from SVN trunk with Qt5 alpha successfully. For the Qwt 6.0 and 5.2 branches I have not decided what to do - not until at least a Qt 5 beta with a stable API is available.

    But I wouldn't expect too much from using Qwt and Qt 5.0 - until widgets and quick stuff can coexist ( planned maybe for Qt 5.1 ) I don't see many good reasons for upgrading an application using Qwt to Qt 5.

    Unfortunately it will need some time to reorganize the Qwt plot framework, so that it can be used optionally without widgets. But this time please don't blame me for all the related API incompatibilities ...

    Uwe

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

    alizadeh91 (9th July 2012)

  4. #3
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    Thanks Uwe...
    Actually because of qml's opengl rendering(in qt5) i want to use qt5. In the other hand i need plotting(so i choose qwt).

    What version of qwt did you build with qt5 from SVN???

    Thanks for your reply.

  5. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    Quote Originally Posted by alizadeh91 View Post
    Actually because of qml's opengl rendering(in qt5) i want to use qt5. In the other hand i need plotting(so i choose qwt).
    Impossible due to the design of Qt 5.0 - beside the QML stuff and the plot widget are located in different top level widgets. Coexistence is maybe possible with Qt 5.1.

    The same limitation is for all widgets ( Qt widgets too ! ) and as there are no desktop components available yet for Qt Quick 2.0 better check your options before you start.

    Uwe

  6. #5
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    I've found a class with name: "WindowWidget" in internet which integrate qml in qwidget easily!!! its performance is excellent!!!


    Added after 8 minutes:


    I've uploaded them
    Attached Files Attached Files
    Last edited by alizadeh91; 9th July 2012 at 11:40.

  7. The following user says thank you to alizadeh91 for this useful post:

    Mosi (30th September 2012)

  8. #6
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    Quote Originally Posted by alizadeh91 View Post
    I've found a class with name: "WindowWidget" in internet which integrate qml in qwidget easily!!! its performance is excellent!!!
    Probably for Qt4.

    Qt/Quick 1 is simply a layer on top of widgets, while Qt/Quick 2 has a completely different graphic backend ( scene graph ), that is incompatible with that one used for widgets.

    Uwe

  9. #7
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    No I've compiled it with qt5 and it works believe me it works!! it embedds QWindow in QWidget

  10. #8
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    Quote Originally Posted by alizadeh91 View Post
    No I've compiled it with qt5 and it works believe me it works!! it embedds QWindow in QWidget
    And rendering is done by the scene graph - what was your reason for using Qt 5 ?
    What you are looking for is the other way round: how to embed QWidget into a scene graph based window.

    Uwe

  11. #9
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    Yes the embedded qwindow is rendering with scene graph. my reason for using Qt 5 is pretty clear (because it has scene graph)

    You didn't tell me which version of qwt you built with qt5 from SVN?

  12. #10
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Building qwt with qt5 alpha

    Quote Originally Posted by alizadeh91 View Post
    You didn't tell me which version of qwt you built with qt5 from SVN?
    SVN trunk ( don't ask me for the version number ). And I didn't update for any modifications that happened in Qt5 since the alpha.

    Uwe

    PS: the version in trunk offers the option of using an OpenGL plot canvas.

Similar Threads

  1. QtCreator 2.5 RC in Qt5 alpha
    By rtorrano in forum General Discussion
    Replies: 0
    Last Post: 30th April 2012, 14:14
  2. QMainWindow->centralWidget with alpha?
    By wafto in forum Newbie
    Replies: 2
    Last Post: 7th December 2008, 02:52
  3. QTermWidget alpha
    By un-defined in forum Qt-based Software
    Replies: 0
    Last Post: 20th May 2008, 21:52
  4. Alpha blending..
    By chethana in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2007, 10:15
  5. image alpha
    By murko81 in forum Qt Programming
    Replies: 13
    Last Post: 28th October 2006, 19:31

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.