QColorDialog Different on Ubuntu

111 views Asked by At
 void MainWindow::backgroundColor_screen_clicked()
{
    QColorDialog col;
    QColor color;
    color = col.getColor();
    pviz->setBackgroundColor(color.red()/255.0,color.green()/255.0,color.blue()/255.0);
    pviz2->setBackgroundColor(color.red()/255.0,color.green()/255.0,color.blue()/255.0);
    
}

When I use QColorDialog, I get a dialog form like this:

https://prnt.sc/10f7sy1

However, when I check the under QColorDialog examples I saw that form like this:

https://prnt.sc/10f7tlg

How can I use this color chart in my code too?

0

There are 0 answers