Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. inporting the Ui data from qt3 to qt5
Forum Updated to NodeBB v4.3 + New Features

inporting the Ui data from qt3 to qt5

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 3 Posters 801 Views 2 Watching
  • 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 Offline
    M Offline
    Monsif
    wrote on last edited by
    #1

    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

    mrjjM 1 Reply Last reply
    0
    • M Monsif

      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

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      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
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved