Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-Nov-2009, 14:27
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 11
pierre-antoine hasn't been rated much yet
Default OpenGL & Qt

Hi everybody,
I've got some issue using Qt: I've install the lib and create a new Qt program in codeBlocks with contain only the basis:

Code:
#include <QApplication>
#include <QFont>
#include <QPushButton>

int main(int argc, char* argv[])
{
    QApplication app(argc, argv);

    QPushButton quit("Quit");

    quit.resize(75, 30);
    quit.setFont(QFont("Times", 18, QFont::Bold));

    QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));

    quit.show();

    return app.exec();
} 
Each time I launch this I've got a windows saying "Failed to find a suitable pixel format for the window -- cannot create OpenGL context". I installed the driver for my NVidia card and I've got a good result when I'm using glxgears.

Any idea ?
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2