Seite 1 von 1

qt4.3 forms nicht abwärtkompatibel?

Verfasst: 20. Juni 2007 09:43
von law.skynet
hallo,

ich habe seit ein paar tagen auf meinem linux entwicklungrechner qt4.3 installiert. is es möglich, dass forms die ich dort mit dem designer erstellt habe nicht mit qt4.2 unter mac os x oder windows funktionieren?

ich bekomme immer folgende fehler:

Code: Alles auswählen

ui_mainwindow.h: In member function `void Ui_MainWindow::setupUi(QMainWindow*)':

ui_mainwindow.h:99: error: 'class QGridLayout' has no member named 'setLeftMargin'
ui_mainwindow.h:100: error: 'class QGridLayout' has no member named 'setTopMargin'
ui_mainwindow.h:101: error: 'class QGridLayout' has no member named 'setRightMargin'
ui_mainwindow.h:102: error: 'class QGridLayout' has no member named 'setBottomMargin'
ui_mainwindow.h:103: error: 'class QGridLayout' has no member named 'setHorizontalSpacing'
ui_mainwindow.h:104: error: 'class QGridLayout' has no member named 'setVerticalSpacing'
oder gibt es da irgend ein anderes problem?

Verfasst: 20. Juni 2007 10:03
von macman
http://trolltech.com/developer/notes/ch ... nges-4.3.0
Guckst Du nach QLayout und findest Du:
- QLayout
* Added new features to Qt's layout system to enable:
- independent values for all of the four margins,
- independent horizontal spacing and vertical spacing in QGridLayout,
- non-uniform spacing between layout items,
- layout items to occupy parts of the margin or spacing when required by the application or style.
Da man die Werte auch im Designer setzen kann, gibt es da Unterschiede.

Verfasst: 20. Juni 2007 10:05
von law.skynet
also muss ich alles auf 4.3 umstellen?

Verfasst: 20. Juni 2007 10:08
von macman
Schmeiß die Properties mit einem Texteditor raus, dann sollte es auch wieder mit Qt4.2 gehen.