Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Unsolved inporting the Ui data from qt3 to qt5

    Tools
    3
    3
    522
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Monsif last edited by

      Hello every one ,
      I'm trying to read an xml code from ui data and I need an Algorithm to change it to qt5 , I'm try to use QXmlStreamReader or XML with DOM to read the XML code bus I must remove same Element and add a new one not just values . I'm not sure if is it possible to make it with DOM . or maybe it's will be better if I use just QTextStream .
      thanks for your Help

      Monsif

      mrjj 1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion @Monsif last edited by mrjj

        HI
        It sounds like you want
        http://doc.qt.io/qt-5/qdomdocument.html#details

        So you load the Qt3 version. the add/remove nodes and save as Qt5.

        Do you know what been changed between Qt3 and 5 ? (UI file wise)
        http://doc.qt.io/qt-4.8/porting4-designer.html

        1 Reply Last reply Reply Quote 1
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          To add to @mrjj Qt 4 provides a tool to upgrade your Qt 3 .ui files to Qt 4 .ui files that can then be also used with Qt 5.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 2
          • First post
            Last post