You are not logged in.

Commander

Beginner

  • "Commander" is male
  • "Commander" started this thread

Posts: 1

Location: Russia, Novosibirsk

  • Send private message

1

Sunday, June 10th 2007, 8:20am

QApplication creation before QWidgets

Hello. Sorry for my bad english.
I need a program with the following features: program have N forms (QWidget etc.) and each form can access to components from every other form (for example, button on form3 can settext() to lineEdit on form1). I try make it and have an error:

Quoted


root@Commander:~/qttest# ./main
QApplication::palette: Please instantiate the QApplication object first
QWidget: Must construct a QApplication before a QPaintDevice

I know, i must create QApplication before creating Widgets, but i don't know how to do it with persistence functionality =(

This is my program (Qt 4 on Debian Etch 4.0): http://commander.net.ru/qttest.tar.bz2.
Help me, please.
Debian GNU/Linux Etch 4.0 December 2006